PhenLabs - Market Fluid Dynamics📊 Market Fluid Dynamics -
Version: PineScript™ v6
📌 Description
The Market Fluid Dynamics - Phen indicator is a new thinking regarding market analysis by modeling price action, volume, and volatility using a fluid system. It attempts to offer traders control over more profound market forces, such as momentum (speed), resistance (thickness), and buying/selling pressure. By visualizing such dynamics, the script allows the traders to decide on the prevailing market flow, its power, likely continuations, and zones of calmness and chaos, and thereby allows improved decision-making.
This measure avoids the usual difficulty of reconciling multiple, often contradictory, market indications by including them within a single overarching model. It moves beyond traditional binary indicators by providing a multi-dimensional view of market behavior, employing fluid dynamic analogs to describe complex interactions in an accessible manner.
🚀 Points of Innovation
Integrated Fluid Dynamics Model: Combines velocity, viscosity, pressure, and turbulence into a single indicator.
Normalized Metrics: Uses ATR and other normalization techniques for consistent readings across different assets and timeframes.
Dynamic Flow Visualization: Main flow line changes color and intensity based on direction and strength.
Turbulence Background: Visually represents market stability with a gradient background, from calm to turbulent.
Comprehensive Dashboard: Provides an at-a-glance summary of key fluid dynamic metrics.
Multi-Layer Smoothing: Employs several layers of EMA smoothing for a clearer, more responsive main flow line.
🔧 Core Components
Velocity Component: Measures price momentum (first derivative of price), normalized by ATR. It indicates the speed and direction of price changes.
Viscosity Component: Represents market resistance to price changes, derived from ATR relative to its historical average. Higher viscosity suggests it’s harder for prices to move.
Pressure Component: Quantifies the force created by volume and price range (close - open), normalized by ATR. It reflects buying or selling pressure.
Turbulence Detection: Calculates a Reynolds number equivalent to identify market stability, ranging from laminar (stable) to turbulent (chaotic).
Main Flow Indicator: Combines the above components, applying sensitivity and smoothing, to generate a primary signal of market direction and strength.
🔥 Key Features
Advanced Smoothing Algorithm: Utilizes multiple EMA layers on the raw flow calculation for a fluid and responsive main flow line, reducing noise while maintaining sensitivity.
Gradient Flow Coloring: The main flow line dynamically changes color from light to deep blue for bullish flow and light to deep red for bearish flow, with intensity reflecting flow strength. This provides an immediate visual cue of market sentiment and momentum.
Turbulence Level Background: The chart background changes color based on calculated turbulence (from calm gray to vibrant orange), offering an intuitive understanding of market stability and potential for erratic price action.
Informative Dashboard: A customizable on-screen table displays critical metrics like Flow State, Flow Strength, Market Viscosity, Turbulence, Pressure Force, Flow Acceleration, and Flow Continuity, allowing traders to quickly assess current market conditions.
Configurable Lookback and Sensitivity: Users can adjust the base lookback period for calculations and the sensitivity of the flow to viscosity, tailoring the indicator to different trading styles and market conditions.
Alert Conditions: Pre-defined alerts for flow direction changes (positive/negative crossover of zero line) and detection of high turbulence states.
🎨 Visualization
Main Flow Line: A smoothed line plotted below the main chart, colored blue for bullish flow and red for bearish flow. The intensity of the color (light to dark) indicates the strength of the flow. This line crossing the zero line can signal a change in market direction.
Zero Line: A dotted horizontal line at the zero level, serving as a baseline to gauge whether the market flow is positive (bullish) or negative (bearish).
Turbulence Background: The indicator pane’s background color changes based on the calculated turbulence level. A calm, almost transparent gray indicates low turbulence (laminar flow), while a more vibrant, semi-transparent orange signifies high turbulence. This helps traders visually assess market stability.
Dashboard Table: An optional table displayed on the chart, showing key metrics like ‘Flow State’, ‘Flow Strength’, ‘Market Viscosity’, ‘Turbulence’, ‘Pressure Force’, ‘Flow Acceleration’, and ‘Flow Continuity’ with their current values and qualitative descriptions (e.g., ‘Bullish Flow’, ‘Laminar (Stable)’).
📖 Usage Guidelines
Setting Categories
Show Dashboard - Default: true; Range: true/false; Description: Toggles the visibility of the Market Fluid Dynamics dashboard on the chart. Enable to see key metrics at a glance.
Base Lookback Period - Default: 14; Range: 5 - (no upper limit, practical limits apply); Description: Sets the primary lookback period for core calculations like velocity, ATR, and volume SMA. Shorter periods make the indicator more sensitive to recent price action, while longer periods provide a smoother, slower signal.
Flow Sensitivity - Default: 0.5; Range: 0.1 - 1.0 (step 0.1); Description: Adjusts how much the market viscosity dampens the raw flow. A lower value means viscosity has less impact (flow is more sensitive to raw velocity/pressure), while a higher value means viscosity has a greater dampening effect.
Flow Smoothing - Default: 5; Range: 1 - 20; Description: Controls the length of the EMA smoothing applied to the main flow line. Higher values result in a smoother flow line but with more lag; lower values make it more responsive but potentially noisier.
Dashboard Position - Default: ‘Top Right’; Range: ‘Top Right’, ‘Top Left’, ‘Bottom Right’, ‘Bottom Left’, ‘Middle Right’, ‘Middle Left’; Description: Determines the placement of the dashboard on the chart.
Header Size - Default: ‘Normal’; Range: ‘Tiny’, ‘Small’, ‘Normal’, ‘Large’, ‘Huge’; Description: Sets the text size for the dashboard header.
Values Size - Default: ‘Small’; Range: ‘Tiny’, ‘Small’, ‘Normal’, ‘Large’; Description: Sets the text size for the metric values in the dashboard.
✅ Best Use Cases
Trend Identification: Identifying the dominant market flow (bullish or bearish) and its strength to trade in the direction of the prevailing trend.
Momentum Confirmation: Using the flow strength and acceleration to confirm the conviction behind price movements.
Volatility Assessment: Utilizing the turbulence metric to gauge market stability, helping to adjust position sizing or avoid choppy conditions.
Reversal Spotting: Watching for divergences between price and flow, or crossovers of the main flow line above/below the zero line, as potential reversal signals, especially when combined with changes in pressure or viscosity.
Swing Trading: Leveraging the smoothed flow line to capture medium-term market swings, entering when flow aligns with the desired trade direction and exiting when flow weakens or reverses.
Intraday Scalping: Using shorter lookback periods and higher sensitivity to identify quick shifts in flow and turbulence for short-term trading opportunities, particularly in liquid markets.
⚠️ Limitations
Lagging Nature: Like many indicators based on moving averages and lookback periods, the main flow line can lag behind rapid price changes, potentially leading to delayed signals.
Whipsaws in Ranging Markets: During periods of low volatility or sideways price action (high viscosity, low flow strength), the indicator might produce frequent buy/sell signals (whipsaws) as the flow oscillates around the zero line.
Not a Standalone System: While comprehensive, it should be used in conjunction with other forms of analysis (e.g., price action, support/resistance levels, other indicators) and not as a sole basis for trading decisions.
Subjectivity in Interpretation: While the dashboard provides quantitative values, the interpretation of “strong” flow, “high” turbulence, or “significant” acceleration can still have a subjective element depending on the trader’s strategy and risk tolerance.
💡 What Makes This Unique
Fluid Dynamics Analogy: Its core strength lies in translating complex market interactions into an intuitive fluid dynamics framework, making concepts like momentum, resistance, and pressure easier to visualize and understand.
Market View: Instead of focusing on a single aspect (like just momentum or just volatility), it integrates multiple factors (velocity, viscosity, pressure, turbulence) to provide a more comprehensive picture of market conditions.
Adaptive Visualization: The dynamic coloring of the flow line and the turbulence background provide immediate, adaptive visual feedback that changes with market conditions.
🔬 How It Works
Price Velocity Calculation: The indicator first calculates price velocity by measuring the rate of change of the closing price over a given ‘lookback’ period. The raw velocity is then normalized by the Average True Range (ATR) of the same lookback period. Normalization enables comparison of momentum between assets or timeframes by scaling for volatility. This is the direction and speed of initial price movement.
Viscosity Calculation: Market ‘viscosity’ or resistance to price movement is determined by looking at the current ATR relative to its longer-term average (SMA of ATR over lookback * 2). The further the current ATR is above its average, the lower the viscosity (less resistance to price movement), and vice-versa. The script inverts this relationship and bounds it so that rising viscosity means more resistance.
Pressure Force Measurement: A ‘pressure’ variable is calculated as a function of the ratio of current volume to its simple moving average, multiplied by the price range (close - open) and normalized by ATR. This is designed to measure the force behind price movement created by volume and intraday price thrusts. This pressure is smoothed by an EMA.
Turbulence State Evaluation: A equivalent ‘Reynolds number’ is calculated by dividing the absolute normalized velocity by the viscosity. This is the proclivity of the market to move in a chaotic or orderly fashion. This ‘reynoldsValue’ is smoothed with an EMA to get the ‘turbulenceState’, which indicates if the market is laminar (stable), transitional, or turbulent.
Main Flow Derivation: The ‘rawFlow’ is calculated by taking the normalized velocity, dampening its impact based on the ‘viscosity’ and user-input ‘sensitivity’, and orienting it by the sign of the smoothed ‘pressureSmooth’. The ‘rawFlow’ is then put through multiple layers of exponential moving average (EMA) smoothing (with ‘smoothingLength’ and derived values) to reach the final ‘mainFlow’ line. The extensive smoothing is designed to give a smooth and clear visualization of the overall market direction and magnitude.
Dashboard Metrics Compilation: Additional metrics like flow acceleration (derivative of mainFlow), and flow continuity (correlation between close and volume) are calculated. All primary components (Flow State, Strength, Viscosity, Turbulence, Pressure, Acceleration, Continuity) are then presented in a user-configurable dashboard for ease of monitoring.
💡 Note:
The “Market Fluid Dynamics - Phen” indicator is designed to offer a unique perspective on market behavior by applying principles from fluid dynamics. It’s most effective when used to understand the underlying forces driving price rather than as a direct buy/sell signal generator in isolation. Experiment with the settings, particularly the ‘Base Lookback Period’, ‘Flow Sensitivity’, and ‘Flow Smoothing’, to find what best suits your trading style and the specific asset you are analyzing. Always combine its insights with robust risk management practices.
Pesquisar nos scripts por "swing trading"
[blackcat] L2 Angle Trend TrackerOVERVIEW
The " L2 Angle Trend Tracker" is a sophisticated technical analysis tool designed to monitor trend direction and momentum using multiple Exponential Moving Averages (EMAs) with different periods. 📈 This script calculates the angles of 5 EMAs (5, 8, 10, 12, and 15 periods) and displays them with gradient colors, providing a comprehensive view of market momentum. When all EMAs cross above or below specified threshold levels, it generates Buy or Sell signals with visual alerts. The indicator helps traders identify trend reversals, potential entry/exit points, and market sentiment shifts with precision. 🚀 This powerful tool is particularly useful for traders who want to combine multiple timeframe analysis with angle-based momentum confirmation.
FEATURES
Calculates angles for 5 EMAs with customizable periods (5, 8, 10, 12, and 15)
Displays angle values with distinct colors for each EMA (Green, Blue, Purple, Orange, and Red)
Generates Buy signals when all EMAs cross above the lower threshold
Generates Sell signals when all EMAs cross below the upper threshold
Shows a zero line and threshold lines for easy reference
Customizable threshold levels for Buy/Sell signals
Visual alerts with "Buy" and "Sell" labels at the point of signal generation
The script uses a mathematical formula to calculate the angle of each EMA relative to its position 11 bars ago
Angle values are converted from radians to degrees for easier interpretation
The zero line represents no change in the EMA angle
The indicator is not overlayed on the price chart by default, but can be adjusted in the script settings 📊
HOW TO USE
Adjust the EMA periods to match your trading strategy 🛠️
Shorter periods (5, 8) are more sensitive to price changes
Longer periods (10, 12, 15) provide smoother trend confirmation
Set appropriate threshold values for Buy/Sell signals based on your risk tolerance
Default thresholds are 70 for upper threshold and -70 for lower threshold
Consider adjusting thresholds based on market volatility
Watch for Buy signals when all EMAs cross above the lower threshold (default: -70)
The signal appears as a green "Buy" label on the chart
This indicates a potential trend reversal to the upside
Watch for Sell signals when all EMAs cross below the upper threshold (default: 70)
The signal appears as a red "Sell" label on the chart
This indicates a potential trend reversal to the downside
Combine with other indicators for confirmation before making trading decisions 🧠
Consider using volume confirmation, support/resistance levels, or other oscillators
The angle tracker works well with trend-following strategies
Use the angle values to gauge momentum strength
Steeper angles indicate stronger momentum
Flatter angles suggest weakening momentum or consolidation
CONFIGURATION
EMA Periods: The script uses five different EMA periods that can be customized:
EMA Period 5: Short-term trend indicator
EMA Period 8: Medium-short term trend indicator
EMA Period 10: Medium-term trend indicator
EMA Period 12: Medium-long term trend indicator
EMA Period 15: Long-term trend indicator
Threshold Settings:
Threshold Top: Sets the upper boundary for Sell signals (default: 70)
Threshold Bot: Sets the lower boundary for Buy signals (default: -70)
These thresholds can be adjusted based on market conditions and trading style
LIMITATIONS
The script may generate false signals in ranging markets or during periods of high volatility
All EMAs must cross the threshold for a signal to appear, which may filter some valid signals
The angle calculation uses a 11-bar lookback period, which may not be suitable for all timeframes
Works best in trending markets and may produce whipsaws in choppy conditions ⚠️
The indicator is more effective on higher timeframes (4H, 1D) than on very short timeframes (1M, 5M)
Signal generation requires confirmation from multiple EMAs, which may delay entry/exit points
The angle calculation method may not be suitable for all financial instruments
ADVANCED TIPS
Use multiple instances of this indicator with different EMA settings for multi-timeframe analysis
Combine with volume analysis to confirm the strength of signals
Look for confluence with support and resistance levels for more reliable signals
Consider using the angle values as a filter for other trading strategies
The indicator can be used to identify momentum exhaustion points when angles flatten
For swing trading, consider using the Buy and Sell signals as potential entry/exit points
For day trading, you may want to use shorter EMA periods and adjust threshold values accordingly
NOTES
The script uses a mathematical formula to calculate the angle of each EMA relative to its position 11 bars ago
The angle values are converted from radians to degrees for easier interpretation
The zero line represents no change in the EMA angle
The indicator is not overlayed on the price chart by default, but can be adjusted in the script settings 📊
The angle calculation provides a dynamic view of momentum that traditional moving averages don't offer
The threshold values are based on empirical testing and can be fine-tuned for specific instruments
THANKS
Special thanks to the TradingView community for their support and feedback on this indicator. If you find this script helpful, please consider leaving a comment or sharing your experiences with it. Your feedback helps improve the tool for everyone. 🙏
Also, a nod to the original concept developers who pioneered angle-based trend analysis. This script builds upon those foundational ideas to provide a more comprehensive view of market momentum. 🌟
MA Thrust Processor | QuantEdgeB⚡MA Thrust Processor | QuantEdgeB
🔭 What is the MA Thrust Processor?
The MA Thrust Processor (MTP) is a dynamic and modular market momentum engine that specializes in thrust-based signal analysis derived from smoothed moving averages. It’s engineered to model directional commitment, detect signal imbalances, and visualize structural momentum in a range of market conditions.
🧬 Think of MTP as a precision-engineered motion sensor — decoding strength, follow-through, and structural imbalance in real time — it detects force, direction, velocity, and alignment, adapting based on your preferred calculation model (Wave, Thrust, Z-Score, or Normalized) and signal mode (Impulse, Trend, or HA Candles).
_______________________
1. 🔧 System Core: Customizability and Processing Engine
📊 Moving Average Types
MA Thrust Processor supports a rich menu of 13+ moving average styles:
• Standard: SMA, EMA, WMA
• Advanced: HMA, LSMA, ALMA, JMA, TEMA, DEMA, SMMA
• Volume-Based: VWMA
• Adaptive Models: VIDYA (3 modes), FRAMA
💡 Each MA type acts as the backbone for signal smoothing and thrust deviation modeling, giving the user tight control over behavior and lag tradeoffs.
⚙️ Calculation Methods (MA Derivatives)
You choose how the core value is calculated:
1️⃣ 𝓦𝓪𝓿𝓮
• Sine-wave modeled oscillator
• Combines MA distance with standard deviation normalization
• Ideal for detecting divergences and cyclical structure
• Output includes center, smoothed line , and histogram.
2️⃣ 𝓣𝓱𝓻𝓾𝓼𝓽
• Calculates MA deviation vs. price and midpoint
• Captures aggressive directional pushes relative to range center
• Excellent for breakout/trend force analysis
3️⃣ 𝓩-𝓢𝓬𝓸𝓻𝓮
• Mean-reverting z-score over MA
• Expresses statistical distance from norm
• Used in reversion or probabilistic strategies
4️⃣ 𝓝𝓸𝓻𝓶𝓪𝓵𝓲𝔃𝓮𝓭
• Scales MA output to 0–1 (centered at 0.5)
• Tracks where the signal lies in its own relative range
• Great for flat vs. trending recognition
_______________________
2. 🧨 SIGNAL MODES – The Behavioral Core
The system supports 3 powerful signal modes that define how the thrust logic is interpreted and visualized.
1️⃣ 𝓘𝓶𝓹𝓾𝓵𝓼𝓮 Mode
🔥 Use Case: Breakouts, aggressive reversals, divergences
🔍 Logic:
• In Wave mode: compares Wave O (oscillator) and S (smoothed)
• In Thrust/Z-Score/Normalized: applies thresholds (static, SD, or percentile)
• Detects sharp departures or rejections from bounds
🎯 Ideal for:
• Scalp or event trades
• High-velocity moves
• Leading edge of trend or compression breaks
2️⃣ 𝓣𝓻𝓮𝓷𝓭 Mode
🧭 Use Case: Stable continuation and trend following
🔍 Logic:
• Signal triggers when value crosses a calculated midline or long-term average
• Thresholds: midline or 365-SMA of smoothed value
• Acts as a stable “bias direction” for trades
🎯 Ideal for:
• Swing trading
• Portfolio allocations
• Holding directional exposure longer
3️⃣ 𝓗𝓐 𝓒𝓪𝓷𝓭𝓵𝓮𝓼 Mode
🎨 Use Case: Visual clarity + phase detection
🔍 Logic:
• Converts signal to Heikin-Ashi candles
• Adds logic for momentum, reversal, continuation, or chop
• Highly discretionary and pattern-oriented
🎯 Ideal for:
• Visual traders
• Phase-based strategies
• Avoiding false positives in chop
_______________________
3. 📊 System Sensor Table (Strength Meter)
MA Thrust Processor includes a sophisticated sensor display with multi-layered insights.
🔁 Signal State
• Long ⟹ bullish conviction or thrust
• Short ⟹ bearish dominance or rejection
• Cash ⟹ neutrality or low conviction
Dynamically generated by logic mode and indicator thresholds.
📊 Strength Bars: Conviction + Potential
Strength output is never binary — instead, it’s expressed via:
1️⃣ Conviction Strength (when signal is active):
• Score from 0% to 100%
• Based on:
o Momentum velocity (Rate of Change)
o Distance from key thresholds
o Divergence signal (Wave mode)
o Flat signal detection (for Normalized)
2️⃣ Potential Strength (when signal = neutral):
• Displays both Bullish and Bearish readiness
• Interprets which side is loading pressure
• Helps traders spot “who has the edge” before breakout
👀 In Wave Mode, potential is calculated from oscillator vs. smoothed
👀 In Impulse/Trend, it blends distance + RoC + signal stability
🔸 HA Candle Phase (HA Mode Only)
When HA mode is active, strength bars are replaced with a live phase classifier:
• Momentum Up/Down: price above/below threshold + same color trend
• Reversal Up/Down: price above/below bounds, opposite signal color
• Continuation Up/Down: following a breakout/confirmation
• Chop: indecision zone
• Neutral: no clear trend
This turns HA mode into a narrative engine, expressing what’s happening, why, and what might come next.
_______________________
4. 🧠 Smart Auto-Configuration
Enabling Use Recommended Settings triggers optimized configurations:
• Pre-set thresholds (static, percentile, SD)
• Ideal lengths for each logic type
• Proper bounds scaling
• MA selections that match the logic
For example:
• Impulse + Thrust ⇒ shorter length + SD
• Trend + Z-Score ⇒ long mean-based
• Wave ⇒ balanced smoothing + SD blend
_______________________
5. 🧪 Summary of Use Cases
Each mode and calculation method within the MA Thrust Processor is tailored for specific trading styles and market conditions. Here’s how to think about their best applications:
🔹 Signal Modes
Impulse Mode is designed for speed and responsiveness. It excels in fast markets where breakouts or sharp reversals happen quickly. Ideal for scalpers, intraday traders, or anyone looking to catch momentum just as it ignites. It’s particularly effective around high-impact events like economic reports or news catalysts, as it picks up directional shifts rapidly.
Trend Mode focuses on longer-term, stable price action. It identifies directional bias using midline or average-based thresholds, making it best for swing traders and trend followers. Because of its stability, it filters out minor fluctuations and helps you stay in trades longer when the directional move is sustained.
HA Candles Mode is for traders who prefer a visual, phase-based approach. It smooths data using Heikin-Ashi logic and adds interpretive layers like "Momentum," "Reversal," or "Chop" to describe what’s happening structurally. This is excellent for discretionary traders, those who use price rhythm or structure, and those seeking cleaner entry points in noisy environments.
🔹 Calculation Methods
Wave is an oscillator-based model. It detects momentum swings and divergence between price and the smoothed oscillator. Great for spotting early reversals, pullback continuations, or cyclical rhythm patterns. In Impulse mode, it shows histogram shifts that reflect internal thrust dynamics.
Thrust quantifies directional pressure by comparing the signal’s distance from both the midpoint of price range and an SMA. This method is powerful when you want to assess how much true force is behind a move — especially useful during breakout scenarios or strong directional pushes.
Z-Score mode normalizes the signal to its statistical distance from the mean. This makes it ideal for mean reversion strategies or situations where price has deviated too far from historical behavior. Traders can look for exhaustion zones or pullback opportunities with greater confidence.
Normalized rescales the signal within a 0–1 range (centered at 0.5), helping traders understand where the price sits within its own context — whether it’s relatively extended or compressed. It’s great for range traders, flat market identification, or mapping gradual bias accumulation.
_______________________
Each mode and method has been thoughtfully designed to align with different strategy frameworks — and switching between them completely reconfigures the way the system operates, giving traders unmatched flexibility across timeframes and asset classes
_______________________
🧭 Conclusion
MA Thrust Processor isn’t just a tool - it’s a precision-calibrated thrust engine that gives market context form. It lets you define your logic, style, and MA behavior while delivering rich visual output and conviction-based strength insight.
Whether you're reading momentum waves, modeling thrust deviation, or interpreting candle structure, MTP adapts to your strategy.
🚀 From short-term scalps to long-term rotations, MTP delivers signal clarity with the quantitative conviction needed in modern markets.
📌 Trade with Statistical Precision | Powered by QuantEdgeB
🔹 Disclaimer: Past performance is not indicative of future results.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Polarity-VoVix Fusion Index (PVFI) Polarity-VoVix Fusion Index (PVFI) - Order Flow and Volatility Regime Detector
The PVFI is a next-generation indicator that fuses the Order Flow Polarity Index (OFPI) with a proprietary VoVix Volume Delta (VVD) engine. This tool is designed for traders who want to see not just how much volume is trading, but who is in control and how volatility is shifting beneath the surface.
What Makes PVFI Standout from the rest?
- Dual Engine: PVFI combines two advanced signals:
* OFPI: Measures real-time buy/sell pressure using candle body position and volume, then smooths it with a T3 moving average for clarity and responsiveness.
* VVD: Captures the "volatility of volume delta" - a normalized, memory-boosted measure of aggressive buying/selling, with a custom non-linear clamp for organic, non-pegged signals.
- Visual Clarity: Neon-glow OFPI line and shadowed, color-gradient VVD area make regime shifts and momentum instantly visible.
- Adaptive Dashboard: Toggle between a full-featured dashboard (desktop) and a compact info line (mobile) for seamless use on any device.
- Universal: Works on any asset - crypto, stocks, futures, forex - and any timeframe.
- No Chart Clutter: Clean, modern visuals and toggles for a pro look.
Inputs:
OFPI Lookback Length (ofpi_len): Sets the window for order flow pressure calculation. Shorter = more sensitive, longer = smoother. For scalping, try 5-10. For swing trading, 15-30. Crypto often benefits from shorter windows due to volatility.
OFPI T3 Smoothing Length (t3_len): Controls the smoothness of the OFPI line. Lower = more responsive, higher = smoother. Use 3-7 for fast markets, 8-15 for slow or higher timeframes.
OFPI T3 Volume Factor (t3_vf): Adjusts the T3’s sensitivity. Higher = more responsive, lower = more stable. 0.6-0.8 is typical. Raise for more “snappy” signals, lower for less noise.
VVD Delta Lookback (delta_len): Sets the window for VVD’s volume delta calculation. 10-20 for most assets. Shorter for high-volatility, longer for slow markets.
VVD Volatility Normalization Length (vol_norm_len): Normalizes VVD by recent volume. 15-30 is typical. Use higher for assets with wild volume swings.
VVD Momentum Memory (momentum_mem): Adds a “memory” boost to VVD, amplifying persistent buying/selling. 2-5 is common. Lower for choppy markets, higher for trending.
Show Dashboard (showDash): Toggles the full dashboard table (best for desktop). Turn off for a minimalist or mobile setup.
Show Compact Info Line (showInfoLabel): Toggles a single-line info label (best for mobile). Turn on for mobile or minimalist setups.
How PVFI Works:
- OFPI Calculation: Splits each candle’s volume into buy/sell pressure based on where the close is within the range. Aggregates over your chosen lookback, then smooths with a T3 moving average for a neon, lag-minimized signal.
- VVD Calculation: Measures the “aggression” of volume (body-weighted), normalizes by recent volume, and applies a memory boost for persistent trends. Uses a custom tanh clamp for a natural, non-pegged range.
- Visuals: OFPI is plotted as a neon line (with glow). VVD is a color-gradient area with a soft shadow, instantly showing regime shifts.
- Dashboard/Info Line: Desktop: Full dashboard with all key stats, color-coded and branded. Mobile: Compact info line with arrows for quick reads.
How you'll use PVFI:
- Bullish OFPI (Teal Neon, Up Arrow): Buyers are dominating. Look for breakouts, trend continuations, or confirmation with your own system.
- Bearish OFPI (Green Neon, Down Arrow): Sellers are in control. Watch for breakdowns or short setups.
- VVD Positive (Teal Area): Aggressive buying is increasing. Confirm with price action.
- VVD Negative (Purple Area): Aggressive selling is increasing. Use for risk management or short bias.
- Neutral/Flat: Market is balanced or indecisive. Consider waiting for a clear regime shift.
- Dashboard/Info Line: Use the dashboard for full context, or the info line for a quick glance on mobile.
Tips:
- For scalping, use lower lookbacks and smoothing.
- For swing trading, increase lookbacks and smoothing for stability.
- Works on all assets and timeframes - tune to your style.
Why PVFI is Unique:
- Fusion of Order Flow and Volatility: No other indicator combines body-based order flow with a volatility-of-volume delta, both visualized with modern, pro-grade graphics.
- Adaptive, Not Static: PVFI adapts to market regime, not just price movement.
- Mobile-Ready: Dashboard and info line toggles for any device.
- No Chart Clutter: Clean, color-coded, and easy to read.
For Educational Use Only
PVFI is a research and educational tool, not financial advice. Always use proper risk management and combine with your own strategy.
Trade with clarity. Trade with edge.
— Dskyz , for DAFE Trading Systems
[TehThomas] - Fair Value GapsThis script is designed to automatically detect and visualize Fair Value Gaps (FVGs) on your chart in a clean, intuitive, and highly responsive way. It’s built with active traders in mind, offering both dynamic updates and customization options that help you stay focused on price action without being distracted by outdated or irrelevant information.
What Are Fair Value Gaps?
Fair Value Gaps are areas on a chart where there’s an inefficiency in price, typically formed when price moves aggressively in one direction, leaving a gap between the wicks of consecutive candles. These gaps represent imbalanced price action where not all buy or sell orders were efficiently matched. As a result, they often become magnet zones where price returns later to "fill" the imbalance before continuing in its intended direction. Many traders use them as points of interest for entries, re-entries, or anticipating reversals and consolidations.
This concept is frequently used in Smart Money and ICT-based trading models, where understanding how price seeks efficiency is crucial to anticipating future moves. When combined with concepts like liquidity, displacement, and market structure, FVGs become powerful tools for technical decision-making.
Script Features & Functionality
1. Live Updating Gaps (Dynamic Shrinking)
One of the core features of this script is its ability to track and dynamically shrink Fair Value Gaps as price trades into them. Instead of leaving a static zone on your chart, the gap will adjust in real-time, reflecting the portion that has been filled. This gives you a much more accurate picture of remaining imbalance and avoids misleading zones.
2. Automatic Cleanup After Fill
Once price fully fills an FVG, the script automatically removes it from the chart. This helps keep your workspace clean and focused only on relevant price zones. There’s no need to manually manage your gaps, everything is handled behind the scenes to reduce clutter and distraction.
3. Static Mode Option
While dynamic updating is the default, some traders may prefer to keep the original size of the gap visible even after partial fills. For that reason, the script includes a toggle to switch from live-updating (shrinking) mode to static mode. In static mode, FVGs stay fixed from the moment they are drawn, giving you a more traditional visual reference point.
4. Multi-Timeframe Support (MTF)
You can now view higher timeframe FVGs, such as those from the 1H or 4H chart, while analyzing lower timeframes like the 5-minute. This allows you to see key imbalances from broader market context without having to flip between charts. FVGs from higher timeframes will be drawn distinctly so you can differentiate them at a glance.
5. Cleaner Visualization
The script is designed with clarity in mind. All drawings are streamlined, and filled gaps are removed to maintain a minimal, distraction-free chart. This makes it easier to combine this tool with other indicators or price-action-based strategies without overloading your workspace.
6. Suitable for All Market Types
This script can be used on any asset that displays candlestick-based price action — including crypto, forex, indices, and stocks. Whether you're scalping low-timeframe setups or swing trading with a higher timeframe bias, FVGs remain a useful concept and this script adapts to your trading style.
Use Case Examples
On a 5-minute chart, display 1-hour FVGs to catch major imbalance zones during intraday trading.
Combine the FVGs with liquidity levels and inducement patterns to build ICT-style trade setups.
Use live-updating gaps to monitor in-progress fills and evaluate whether a zone still holds validity.
Set the script to static mode to perform backtesting or visual replay with historical setups.
Final Notes
Fair Value Gaps are not a standalone trading signal, but when used with market structure, liquidity, displacement, and order flow concepts, they provide high-probability trade locations that align with institutional-style trading models. This script simplifies the visualization of those zones so you can react faster, stay focused on clean setups, and eliminate unnecessary distractions.
Whether you’re trading high volatility breakouts or patiently waiting for retracements into unfilled imbalances, this tool is designed to support your edge with precision and flexibility.
Time-Based Fair Value Gaps (FVG) with Inversions (iFVG)Overview
The Time-Based Fair Value Gaps (FVG) with Inversions (iFVG) (ICT/SMT) indicator is a specialized tool designed for traders using Inner Circle Trader (ICT) methodologies. Inspired by LuxAlgo's Fair Value Gap indicator, this script introduces significant enhancements by integrating ICT principles, focusing on precise time-based FVG detection, inversion tracking, and retest signals tailored for institutional trading strategies. Unlike LuxAlgo’s general FVG approach, this indicator filters FVGs within customizable 10-minute windows aligned with ICT’s macro timeframes and incorporates ICT-specific concepts like mitigation, liquidity grabs, and session-based gap prioritization.
This tool is optimized for 1–5 minute charts, though probably best for 1 minute charts, identifying bullish and bearish FVGs, tracking their mitigation into inverted FVGs (iFVGs) as key support/resistance zones, and generating retest signals with customizable “Close” or “Wick” confirmation. Features like ATR-based filtering, optional FVG labels, mitigation removal, and session-specific FVG detection (e.g., first FVG in AM/PM sessions) make it a powerful tool for ICT traders.
Originality and Improvements
While inspired by LuxAlgo’s FVG indicator (credit to LuxAlgo for their foundational work), this script significantly extends the original concept by:
1. Time-Based FVG Detection: Unlike LuxAlgo’s continuous FVG identification, this script filters FVGs within user-defined 10-minute windows each hour (:00–:10, :10–:20, etc.), aligning with ICT’s emphasis on specific periods of institutional activity, such as hourly opens/closes or kill zones (e.g., New York 7:00–11:00 AM EST). This ensures FVGs are relevant to high-probability ICT setups.
2. Session-Specific First FVG Option: A unique feature allows traders to display only the first FVG in ICT-defined AM (9:30–10:00 AM EST) or PM (1:30–2:00 PM EST) sessions, reflecting ICT’s focus on initial market imbalances during key liquidity events.
3. ICT-Driven Mitigation and Inversion Logic: The script tracks FVG mitigation (when price closes through a gap) and converts mitigated FVGs into iFVGs, which serve as ICT-style support/resistance zones. This aligns with ICT’s view that mitigated gaps become critical reversal points, unlike LuxAlgo’s simpler gap display.
4. Customizable Retest Signals: Retest signals for iFVGs are configurable for “Close” (conservative, requiring candle body confirmation) or “Wick” (faster, using highs/lows), catering to ICT traders’ need for precise entry timing during liquidity grabs or Judas swings.
5. ATR Filtering and Mitigation Removal: An optional ATR filter ensures only significant FVGs are displayed, reducing noise, while mitigation removal declutters the chart by removing filled gaps, aligning with ICT’s principle that mitigated gaps lose relevance unless inverted.
6. Timezone and Timeframe Safeguards: A timezone offset setting aligns FVG detection with EST for ICT’s New York-centric strategies, and a timeframe warning alerts users to avoid ≥1-hour charts, ensuring accuracy in time-based filtering.
These enhancements make the script a distinct tool that builds on LuxAlgo’s foundation while offering ICT traders a tailored, high-precision solution.
How It Works
FVG Detection
FVGs are identified when a candle’s low is higher than the high of two candles prior (bullish FVG) or a candle’s high is lower than the low of two candles prior (bearish FVG). Detection is restricted to:
• User-selected 10-minute windows (e.g., :00–:10, :50–:60) to capture ICT-relevant periods like hourly transitions.
• AM/PM session first FVGs (if enabled), focusing on 9:30–10:00 AM or 1:30–2:00 PM EST for key market opens.
An optional ATR filter (default: 0.25× ATR) ensures only gaps larger than the threshold are displayed, prioritizing significant imbalances.
Mitigation and Inversion
When price closes through an FVG (e.g., below a bullish FVG’s bottom), the FVG is mitigated and becomes an iFVG, plotted as a support/resistance zone. iFVGs are critical in ICT for identifying reversal points where institutional orders accumulate.
Retest Signals
The script generates signals when price retests an iFVG:
• Close: Triggers when the candle body confirms the retest (conservative, lower noise).
• Wick: Triggers when the candle’s high/low touches the iFVG (faster, higher sensitivity). Signals are visualized with triangular markers (▲ for bullish, ▼ for bearish) and can trigger alerts.
Visualization
• FVGs: Displayed as colored boxes (green for bullish, red for bearish) with optional “Bull FVG”/“Bear FVG” labels.
• iFVGs: Shown as extended boxes with dashed midlines, limited to the user-defined number of recent zones (default: 5).
• Mitigation Removal: Mitigated FVGs/iFVGs are removed (if enabled) to keep the chart clean.
How to Use
Recommended Settings
• Timeframe: Use 1–5 minute charts for precision, avoiding ≥1-hour timeframes (a warning label appears if misconfigured).
• Time Windows: Enable :00–:10 and :50–:60 for hourly open/close FVGs, or use the “Show only 1st presented FVG” option for AM/PM session focus.
• ATR Filter: Keep enabled (multiplier 0.25–0.5) for significant gaps; disable on 1-minute charts for more FVGs during volatility.
• Signal Preference: Use “Close” for conservative entries, “Wick” for aggressive setups.
• Timezone Offset: Set to -5 for EST (or -4 for EDT) to align with ICT’s New York session.
Trading Strategy
1. Macro Timeframes: Focus on New York (7:00–11:00 AM EST) or London (2:00–5:00 AM EST) kill zones for high institutional activity.
2. FVG Entries: Trade bullish FVGs as support in uptrends or bearish FVGs as resistance in downtrends, especially in :00–:10 or :50–:60 windows.
3. iFVG Retests: Enter on retest signals (▲/▼) during liquidity grabs or Judas swings, using “Close” for confirmation or “Wick” for speed.
4. Session FVGs: Use the “Show only 1st presented FVG” option to target the first gap in AM/PM sessions, often tied to ICT’s market maker algorithms.
5. Risk Management: Combine with ICT concepts like order blocks or breaker blocks for confluence, and set stops beyond FVG/iFVG boundaries.
Alerts
Set alerts for:
• “Bullish FVG Detected”/“Bearish FVG Detected”: New FVGs in selected windows.
• “Bullish Signal”/“Bearish Signal”: iFVG retest confirmations.
Settings Description
• Show Last (1–100, default: 5): Number of recent iFVGs to display. Lower values reduce clutter.
• Show only 1st presented FVG : Limits FVGs to the first in 9:30–10:00 AM or 1:30–2:00 PM EST sessions (overrides time window checkboxes).
• Time Window Checkboxes: Enable/disable FVG detection in 10-minute windows (:00–:10, :10–:20, etc.). All enabled by default.
• Signal Preference: “Close” (default) or “Wick” for iFVG retest signals.
• Use ATR Filter: Enables ATR-based size filtering (default: true).
• ATR Multiplier (0–∞, default: 0.25): Sets FVG size threshold (higher values = larger gaps).
• Remove Mitigated FVGs: Removes filled FVGs/iFVGs (default: true).
• Show FVG Labels: Displays “Bull FVG”/“Bear FVG” labels (default: true).
• Timezone Offset (-12 to 12, default: -5): Aligns time windows with EST.
• Colors: Customize bullish (green), bearish (red), and midline (gray) colors.
Why Use This Indicator?
This indicator empowers ICT traders with a tool that goes beyond generic FVG detection, offering precise, time-filtered gaps and inversion tracking aligned with institutional trading principles. By focusing on ICT’s macro timeframes, session-specific imbalances, and customizable signal logic, it provides a clear edge for scalping, swing trading, or reversal setups in high-liquidity markets.
Gabriel's Squeeze Momentum PRO“Gabriel’s Squeeze Momentum PRO” is a next-generation evolution of the classic SQZMOM concept. It layers multiple John Ehlers filters, Jurik smoothing, adaptive cycle-detection, and a Cauchy-weighted price filter on top of the familiar Bollinger-Band-inside-Keltner-Channel squeeze logic. The goal is to pinpoint volatility contractions and immediately gauge whether forthcoming expansion is likely to break bullish or bearish—while screening out noise, lag, and regime shifts across any symbol or timeframe.
1 · What the script plots
Plot What it represents Why it matters
Momentum line (teal/red) Price-de-trended linear-regression of a Cauchy-filtered source, optionally normalized. Measures directional thrust during / after a squeeze.
Signal line (white JMA) Jurik moving average of the momentum line. Smooth trigger for crossovers / reversals.
Squeeze dots (blue, black, red, yellow, purple, green) Real-time volatility state: No squeeze → Wide → Normal → Narrow → Very Narrow → Fired. Helps anticipate explosive moves as BB exits KC.
Cyclic RSI bands (cyan / fuchsia) Dynamic overbought / oversold bands derived by MESA dominant-cycle analysis. Contextualizes momentum extremes—no fixed 70/30.
Rate-of-Change (optional) (orange / blue shading) ROC of the momentum-signal spread, scaled. Highlights acceleration / deceleration.
Reversal guide lines (optional colored rays) Drawn when momentum crosses its JMA and reversal-mode is on. Visual confirmation of early trend change.
2 · Key engine components
Cauchy PDF-weighted moving average
Creates a heavy-tailed weighting curve; center bars dominate while still capturing fat-tail outliers—excellent for choppy instruments or volume-weighting (Volume weighted?).
Butterworth High-Pass & Super-Smoother Low-Pass
Strip out drift, then smooth what’s left. This isolates true cyclic motion before momentum is computed.
Fast RMS normalizer
Converts the band-pass output into a unit-scale “power” reading—vital for adaptive thresholds.
Goertzel + MESA dominant-cycle
Auto-detects fast & slow cycles, then blends them to size overbought / oversold bands and to set the adaptiveLength (if Use Adaptive Length? is enabled).
Jurik RSX & JMA
Provide ultra-low-lag smoothing for momentum and for reversal detection.
3 · Input groups and how to tune them
Group Why change it Tips
Normalization (Unbounded / Min-Max / Standard Deviations) Puts momentum & signal on the scale that best suits the asset. Crypto / small-caps: StdDev (handles volatility).
FX / indices: Min-Max or leave unbounded for raw juice.
Cauchy Distribution Tailors the Cauchy filter. Gamma ↓ (0.1-0.4) ⇒ faster / riskier. Use Adaptive Length pairs it with MESA cycle length for auto speed control.
Rate of Change Visual momentum acceleration. Leave off (Show Rate of Change = false) if you want a cleaner pane.
Momentum Colors / Directional Momentum? Switch between classic SQZMOM coloring and trend-biased histogram. Turn on when you prefer “green-gets-greener / red-gets-redder” style signals.
Squeeze Colors & Thresholds Fine-tune what “wide / normal / narrow” mean. Larger assets (SPX, BTC-Perp): raise the thresholds a touch. Thin or low-ATR symbols: lower them.
Multi-Time-frame blocks (1 h, 4 h, D, W, M) Pre-sets for BB/KC length, squeeze thresholds, and reversal MA length per TF. The script auto-detects the chart timeframe and loads the matching row—just adjust each block once.
Reversal Signals Whether to draw vertical rays on momentum crossovers. Use on swing-trading timeframes (≥1 h) to catch early momentum flips.
4 · How to read & trade it
Scan for purple / yellow / red dots
These indicate Very-Narrow, Narrow, and Normal squeezes—markets are coiling.
Wait for a fired squeeze (green dot)
BB has pushed outside KC; volatility is expanding. Momentum direction often dictates breakout bias.
Check momentum relative to zero & signal
Bullish setup: Momentum > 0 and crossing above signal. Bearish setup: Momentum < 0 and crossing below signal. Alerts “Bullish / Bearish Trend Reversal” are raised here if enabled.
Validate with cyclic bands
If momentum launches from near the lower cyan band, bullish moves are higher-probability (symmetrical for upper fuchsia band).
Confirm trend strength
Directional-momentum histogram keeps turning brighter in trend direction; ROC is above zero and rising.
Manage the trade
First target = prior squeeze mid-range or recent swing high/low.
Consider scaling out when momentum weakens (histogram fades) or reverses through signal line.
Optional: draw the reversal rays to highlight exit zones automatically.
5 · Practical workflows
Scalpers (1-5 min)
Uncheck Use Adaptive Length, set main Length to 10-12, Gamma to 0.3.
Use ROC for ultra-fast divergences.
Treat Normal squeezes (red) as tradable; ignore Wide. Healthy Volume is ideal.
Swing traders (1 h – 4 h)
Keep default adaptive length; enable 1-H/4-H reversal blocks.
Trade only after Very-Narrow/Narrow squeezes; ride until weekly/daily reversal ray prints.
Position / Trend followers (Daily+)
Raise Wide/Normal thresholds a bit (e.g., 2.2 / 1.7).
Momentum normalization = Standard Deviations to filter regime shifts.
Combine with higher-timeframe MTF panel or moving-average ribbons.
6 · Built-in alert catalog
Alert name Fires when Typical action
🟢 Fired Squeeze Green dot appears (vol expansion already under way) Stay in trend or add on pullbacks.
🟠 Low / 🔴 Normal / 🟡 Tight / 🟣 Very Tight Respective squeeze engages Get your watch-list ready; plan trades.
🐂 Bullish / 🐻 Bearish Trend Reversal Momentum crosses signal in requested direction Entry / exit / scale adds.
Set alerts on “Once Per Bar Close” for reliable signals.
7 · Best practices & caveats
Context is king – Use higher-timeframe structure (support/resistance, VWAP, market profile) to avoid false breakouts.
Data quality – On illiquid symbols, consider turning volume weighting off (pre-market gaps distort results).
Normalization choice – Mixing different normalizations across charts can confuse muscle memory; pick one style per asset class.
Lag vs. noise – If entries feel late, lower Gamma or disable adaptive length. If too jumpy, increase Length or choose Standard-Deviation normalization.
Not a stand-alone holy grail – Combine with risk management (ATR-based stops, Kelly-fraction sizing) and confirm with price action.
Harness the script’s adaptive filtering, multi-TF presets, and rich alert suite to spot compression, time breakouts, and stay on the right side of momentum—whether you’re scalping ES futures or swing-trading alt-coins.
Institutional Volume Toolkit & Automatic Wick @ MaxMaserati 2.0Institutional Volume Toolkit with Automatic Wick Analyzer @ MaxMaserati 2.0
Overview
This advanced technical indicator combines institutional volume analysis with precise wick detection to reveal hidden market dynamics driving price action. Designed for serious traders who recognize that volume is the fuel behind meaningful price movements, this toolkit identifies key support/resistance zones created by significant institutional activity while simultaneously analyzing candlestick wicks to detect buyer/seller dominance.
Key Features
Volume Defense Levels
Institutional Support/Resistance Detection: Automatically identifies price levels where significant volume occurred during swing points
Dynamic Strength Visualization: Defense level thickness varies based on relative volume importance
Volume % Labels: Clearly shows the strength of each defense level relative to average volume
Adaptive Coloring: Green for buyer defense (support), red for seller defense (resistance)
Wick Analysis System
Smart Wick Detection: Analyzes upper and lower wicks to identify real-time buying and selling pressure
Automatic Dominance Calculation: Determines whether buyers or sellers are dominant at key price points
Multi-Line Analysis: Displays 3-line sets at critical wick areas for precise entry/exit signals
Volume-Enhanced Signals: Combines wick analysis with volume comparison for stronger signals
Trading Applications
Support/Resistance Trading: Identify high-probability bounce or reversal zones created by institutional volume
Break & Retest Strategies: Trade with confidence when price retests broken volume levels
Divergence Detection: Spot divergences between price action and institutional commitment
Swing Trading Setup: Perfect for identifying optimal swing trade entries with favorable risk/reward
Trend Confirmation: Validate trend strength by assessing institutional participation
Setup Guidelines
Volume Defense Levels: Customize volume lookback and threshold to match your timeframe
Wick Analysis: Set filters (wick-to-body ratio, volume percentage, dominance) to eliminate noise
Visual Settings: Adjust colors and label sizes to match your chart preferences
Combine Timeframes: Use on higher timeframes for strategic levels, lower timeframes for entries
This indicator combines sophisticated volume analysis with candlestick psychology, providing a complete toolkit for identifying institutional activity where smart money is actively defending price levels. By revealing the hidden forces driving market movements, it offers a significant edge for traders seeking to align their positions with institutional flow.
A.K Dynamic EMA/SMA / MTF S&R Zones Toolkit with AlertsThe A.K Dynamic EMA/SMA / MTF Support & Resistance Zones Toolkit is a powerful all-in-one technical analysis tool designed for traders who want a clean yet comprehensive market view. Whether you're scalping lower timeframes or swing trading higher timeframes, this indicator gives you both the structure and signals to take action with confidence.
Key Features:
✅ Customizable EMA/SMA Suite
Display key Exponential and Simple Moving Averages including 5, 9, 20, 50, 100, and 200 EMAs, plus optional 50 SMA for trend filtering. Each line can be toggled individually and color-customized.
✅ Multi-Timeframe Support & Resistance Zones
Automatically detects dynamic S/R zones on key timeframes (5min, 15min, 30min, 1H, 4H, 1D) using swing highs/lows. Zones are color-coded by strength and whether they're broken or active, providing a clear visual roadmap for price reaction levels.
✅ Zone Strength & Break Detection
Distinguishes between strong and weak zones based on price proximity and reaction depth, with visual shading and automatic label updates when a level is broken.
✅ Price Action-Based Buy/Sell Signals
Generates BUY signals when bullish candles react to strong support (supply) zones, and SELL signals when bearish candles react to strong resistance (demand) zones. All logic is adjustable — including candle body vs wick detection, tolerance range, and strength thresholds.
✅ Alerts Engine
Built-in TradingView alerts for price touching support/resistance or triggering buy/sell signals. Perfect for automation or hands-free monitoring.
✅ Optional Candle & Trend Filters
Highlight bullish/bearish candles visually for additional confirmation.
Optional RSI display and 50-period SMA trend filter to guide directional bias.
🧠 Use Case Scenarios:
Identify dynamic supply & demand zones across multiple timeframes.
Confirm trend direction with EMAs and SMA filters.
React quickly to clean BUY/SELL signals based on actual price interaction with strong zones.
Customize it fully to suit scalping, day trading, or swing trading strategies.
📌 Recommended Settings:
Use default zone transparency (65%) and offset (250 bars) for optimal visual clarity.
Enable alerts to get notified when price enters key S/R levels or when a trade signal occurs.
Combine this tool with your entry/exit plan for better decision-making under pressure.
💡 Pro Tip: Add this indicator to a clean chart and let the zones + EMAs guide your directional bias. Use alerts to avoid screen-watching and improve discipline.
Created by:
Version: Pine Script v6
Platform: TradingView
Gap Reversal Signal with Indicators🔍 Gap Reversal Signal with Indicators — 結合 KD、MACD、SAR 與背離分析的多功能指標
🔍 Gap Reversal Signal with Indicators — A Multi-Tool Signal Indicator Combining KD, MACD, SAR, and Divergence Analysis
中文說明:
本指標結合多種常用技術分析工具,包括 KD 隨機指標、MACD 動能交叉、SAR 趨勢方向、以及 MACD 背離偵測,用以辨識潛在的價格反轉區域。適用於日內交易與波段操作,支援各類市場,如加密貨幣、股票與外匯等。
English Description:
This indicator combines several popular technical tools: Stochastic KD, MACD momentum crossovers, SAR trend direction, and MACD divergence detection. It helps traders identify potential reversal areas and is ideal for both intraday and swing trading. Works well on crypto, stocks, and forex markets.
🧠 功能特點 | Key Features
✅ KD指標(慢速隨機指標)檢測超買超賣並提供%K與%D交叉訊號
✅ Stochastic KD (slow) to detect overbought/oversold zones and crossover signals
✅ MACD金叉/死叉與零軸突破捕捉趨勢轉變與動能反轉
✅ MACD Crossovers + Zero-Line Breaks to capture trend changes and momentum reversals
✅ SAR指標即時顯示多空方向
✅ Parabolic SAR for real-time trend direction indication
✅ MACD背離偵測協助辨識潛在反轉區域
✅ MACD Divergence Detection for identifying hidden trend reversals
✅ 圖形提示與標籤提示可視化呈現各類訊號
✅ Visual Alerts and Labels for easy and quick signal recognition
📈 支援市場 | Supported Markets
📊 台股 / 美股 / 外匯 / 加密貨幣
📊 Taiwan Stocks / US Stocks / Forex / Cryptocurrencies (e.g. BTC, ETH)
🔧 推薦用法 | Recommended Use
搭配缺口策略與支撐壓力位使用
Use with gap-trading strategies and support/resistance zones
用於盤整末期或趨勢反轉的提示
Helpful for end-of-consolidation signals or trend reversals
支援短線與波段交易風格
Suitable for scalping and swing trading styles
💡 把這個指標加入你的圖表,立即體驗多重技術分析所帶來的交易優勢!
💡 Add this indicator to your chart now and experience the power of multi-tool technical analysis!
Regime Scope | mad_tiger_slayerRegimeScope by mad_tiger_slayer
Adapt to the Market’s Mood. Trade in Sync with Regime Scope.
Overview
Regime Scope is an advanced multi-factor market regime identifier meticulously engineered to determine whether an asset is exhibiting trending behavior (Markup/Markdown phases) or mean-reverting dynamics (Sideways - Accumulation/Distribution). By integrating and synthesizing outputs from nine rigorously chosen statistical and volatility-based models, this tool offers a unified framework for assessing regime conditions with precision.
This indicator is best used in conjunction with other tools in your trading arsenal—serving not as a standalone signal generator, but as a high-value filter for confluence and strategic alignment. Whether you're trading breakouts, reversals, or mean-reversion setups, Regime Scope can elevate your system’s contextual awareness and execution timing.
How It Works – Part 1
Regime Scope calculates a composite "regime score" by normalizing and averaging a range of volatility and statistical measures. This score, which ranges between -1 and +1, indicates the likelihood of the market being in a trending versus mean-reverting state.
Values near +1 suggest a strong trending environment.
Values near -1 suggest strong mean-reversion (sideways, volatile) conditions.
Values between -0.30 and +0.30 are considered neutral and indicate choppy or range-bound market behavior.
When the average regime score crosses above the upper threshold, the asset likely enters a trending state.
When it crosses below the lower threshold, the market likely shifts to a volatile, mean-reverting state.
The histogram and dynamic background color provide an intuitive visual guide to the current regime.
How It Works – Part 2: Components
Each of the following sub-models has been carefully selected for its contribution to understanding price behavior. All components are normalized to create a consistent, unified score:
Phillips-Perron Test: Detects the presence of a unit root to infer stationarity and mean-reverting characteristics.
Hurst Exponent: Measures long-term memory in a time series to identify persistence or anti-persistence.
KPSS Test: Tests for level stationarity to contrast against unit-root behavior and validate trending assumptions.
GARCH Volatility: Captures volatility clustering and regime shifts in conditional variance.
Wavelet Transform: Decomposes price action into time-frequency space to extract non-linear and localized dynamics.
Half-Life of Mean Reversion: Estimates the speed at which price returns to its mean, enhancing the timing of reversion plays.
Augmented Dickey-Fuller (ADF) Test: Statistically verifies whether a series exhibits mean-reverting tendencies.
Garman-Klass-Yang-Zhang Volatility: A robust historical volatility measure using open-high-low-close data.
ADX (Average Directional Index): A classic technical tool for quantifying the strength of trend directionality.
How It Works – Part 3: Output Interpretation
All sub-models are normalized and synthesized into a single histogram plot shown in the lower chart panel.
+1.0 to +0.30: Indicates high probability of a directional, trending market.
-1.0 to -0.30: Indicates high probability of a sideways, mean-reverting regime.
-0.30 to +0.30: Suggests a neutral, uncertain market condition.
Transitions above or below these thresholds signal regime shifts.
Background shading adapts in real-time to visually reflect regime classification.
Features
Customizable thresholds to fine-tune sensitivity for regime classification.
Visual overlay positioning (choose from top-left, bottom-right, etc.).
Toggleable reference lines for regime thresholds.
Cross-timeframe consistency through dynamic normalization.
Each sub-model includes adjustable settings for personalized optimization.
Use Cases
Dynamically switch between trend-following and mean-reversion strategies.
Filter out choppy, low-probability zones by avoiding neutral regime periods.
Use regime score as confluence with entry/exit signals from other indicators.
Adapt strategies across timeframes—works well from scalping to swing trading.
Best used on timeframes ≥12H for macro regime context, but scalpers can benefit by using it on shorter windows with tuned parameters.
Scalping Use Case
Overlay the regime score on low timeframes (e.g., 1m–15m) and use it to avoid high chop zones or confirm breakout volume spikes during trending periods.
Long-Term Use Case
On 1D–1W charts, Regime Scope can filter false breakouts and confirm macro trend alignment for position trades or swing setups.
Tip
Combine Regime Scope with traditional technical tools like RSI, MACD, Bollinger Bands, or moving average crossovers to enhance strategic coherence.
For example, only act on breakout or trend-following signals when the regime score exceeds the upper threshold, confirming a high-trend environment.
Conversely, mean-reversion strategies like fading RSI extremes or trading Bollinger Band bounces work best when the regime score is in the lower range.
Aligning your tactical entries with the broader regime can significantly reduce false signals, enhance trade probability, and improve overall system robustness.
VWAP + Engulfing CandlesHere’s a clear breakdown of what your merged Pine Script does:
---
### 📌 **Indicator Name: VWAP + Engulfing Candles**
* This custom TradingView indicator **plots VWAP (Volume Weighted Average Price)** along with **up to 3 dynamic bands** around it.
* It also **detects Bullish and Bearish Engulfing Candlestick Patterns**, displaying visual markers and triggering alerts.
---
## 🔹 **1. VWAP Section**
### ➤ **Main Features:**
* Calculates VWAP anchored to a **customizable time period**:
* Options: Session, Week, Month, Quarter, Year, Decade, Century, Earnings, Dividends, Splits.
* Optional **hiding of VWAP on Daily/Weekly/Monthly charts** to reduce clutter.
### ➤ **Bands Around VWAP:**
* Up to **3 bands** can be plotted above and below the VWAP.
* Bands can be based on either:
* **Standard Deviation** of the price from VWAP (volatility-based), or
* **Percentage** deviation from VWAP (fixed range).
* You can control:
* Whether each band is shown
* Band width via multiplier (e.g., 1x, 2x, 3x)
### ➤ **Plot Colors:**
* VWAP: Blue
* Bands: Green (1x), Olive (2x), Teal (3x)
* Band fill areas are semi-transparent.
---
## 🔹 **2. Engulfing Candlestick Pattern Detector**
### ➤ **Bullish Engulfing Criteria:**
* Current candle opens **below** or **equal to** the close of the previous candle.
* Current candle opens **below** the previous candle's open.
* Current candle closes **above** the previous candle’s open.
### ➤ **Bearish Engulfing Criteria:**
* Current candle opens **above** or **equal to** the close of the previous candle.
* Current candle opens **above** the previous candle’s open.
* Current candle closes **below** the previous candle’s open.
### ➤ **Visual Signals:**
* 🔼 Green triangle **below bar** for **Bullish Engulfing**
* 🔽 Red triangle **above bar** for **Bearish Engulfing**
### ➤ **Alerts:**
* The script includes two alert conditions:
* One for Bullish Engulfing
* One for Bearish Engulfing
These alerts can be used to automate notifications for potential reversal points.
---
## 🛠️ **Use Cases**
* **Trend following or reversal spotting**: VWAP helps identify the average trading price; engulfing patterns often signal reversals.
* **Intraday and swing trading**: Works best on timeframes like 5m, 15m, 1h for intraday, or 4h, 1D for swing.
* **Mean reversion strategies**: Bands help spot overbought/oversold areas relative to VWAP.
(DAFE) DEVMA - Crossover (Deviation Moving Average) (DAFE) DEVMA - Crossover (Deviation Moving Average)
Let’s keep pushing the edge. After the breakthrough of Deviation over Deviation (DoD)—which gave traders a true lens into volatility’s hidden regime shifts—many asked: “What’s next?” The answer is DEVMA: a crossover engine built not on price, but on the heartbeat of the market itself.
Why is this different?
DEVMA isn’t just a moving average crossover. It’s a regime detector that tracks the expansion and contraction of deviation—giving you a real-time readout of when the market’s energy is about to shift. This is the next step for anyone who wants to anticipate volatility, not just react to it.
What sets DEVMA apart:
Volatility-First Logic:Both fast and slow lines are moving averages of deviation, not price. You’re tracking the market’s “energy,” not just its direction. This is the quant edge that most scripts miss.
Regime-Colored Lines:
The fast and slow DEVMA lines change color in real time—green/aqua for expansion, maroon/orange for contraction—so you can see regime shifts at a glance.
Quant-Pro Visuals:
Subtle glow, clean cross markers, and a minimalist dashboard keep your focus on what matters: the regime, not the noise.
Static Regime Thresholds:
Reference lines at 1.5 and 0.5 (custom colors) give you instant context for “normal” vs. “extreme” volatility states.
No Price Chasing:
This isn’t about following price. It’s about anticipating the next volatility regime—before the crowd even knows what’s coming.
How this builds on DoD:
DoD showed you when volatility itself was about to change. DEVMA takes that insight and turns it into a crossover engine—so you can see, filter, and act on regime shifts in real time. If DoD was the radar, DEVMA is the navigation system.
Inputs/Signals—explained for clarity:
Deviation Lookback:
Controls the sensitivity of the regime detector. Shorter = more signals, longer = only the rarest events.
Fast/Slow DEVMA Lengths:
Fine-tune how quickly the regime lines react. Fast for scalping, slow for swing trading.
Source Selection:
Choose from price, volume, volatility, or VoVix. Each source gives you a different lens on market stress. VoVix is for those who want to see the “regime quake” before the aftershocks.
VoVix Parameters:
Fine-tune the volatility-of-volatility engine for your market. Lower ATR Fast = more responsive; higher ATR Slow = more selective.
Bottom line:
DEVMA is for those who want to see the market’s heartbeat, not just its shadow. Use it to filter your trades, time your entries, or simply understand the market’s true rhythm. Every input is there for a reason. Every plot is a direct readout of the quant logic. Use with discipline, and make it your own.
Disclaimer:
Trading is risky. This script is for research and informational purposes only, not financial advice. Backtest, paper trade, and know your risk before going live. Past performance is not a guarantee of future results.
*Updated the Dashboard/Metrics Display for better visibility
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems
Multi VWAPsMulti VWAPs Inspired by Biran Shannon and his book:
"MAXIMUM TRADING GAINS WITH ANCHORED VWAP . The Perfect Combination of Price, Time & Volume."
(ISBN 9798986868004)
A comprehensive VWAP (Volume Weighted Average Price) indicator that combines multiple timeframes and sessions in one view. Perfect for day trading and swing trading across different markets.
Features:
• Multiple VWAP Timeframes:
- Daily VWAP
- Weekly VWAP
- Monthly VWAP
- Quarterly VWAP
- Yearly VWAP
• Session-specific VWAPs:
- London Session (3:00 AM - 11:30 AM NY time)
- New York Session (9:30 AM - 4:00 PM NY time)
• Additional Indicators:
- Midnight Price Line (Previous day's closing price)
- 5-Day Moving Average
- 50-Day Moving Average
• Customization Options:
- Toggle individual VWAPs and indicators
- Customize colors for each component
- Adjustable label positioning
- MA smoothing settings
- Option to show/hide previous day's midnight price
• Smart Features:
- Auto-adjusting calculations based on timeframe
- Clear session boundaries
- Optimized for all chart timeframes
- Clean label system
Perfect for:
• Day traders tracking multiple timeframe momentum
• Swing traders using longer-term VWAPs
• Session traders focusing on London/NY hours
• Multi-timeframe analysis
• Price action trading with VWAP support/resistance
This indicator combines essential trading tools in one clean interface, helping you make informed decisions without cluttering your chart.
Apex Edge - MTF Confluence PanelApex Edge – MTF Confluence Panel
Description:
The Apex Edge – MTF Confluence Panel is a powerful multi-timeframe analysis tool built to streamline trade decision-making by aggregating key confluences across three user-defined timeframes. The panel visually presents the state of five core market signals—Trend, Momentum, Sweep, Structure, and Trap—alongside a unified Score column that summarizes directional bias with clarity.
Traders can customize the number of bullish/bearish conditions required to trigger a score signal, allowing the tool to be tailored for both conservative and aggressive trading styles. This script is designed for those who value a clean, structured, and objective approach to identifying market alignment—whether scalping or swing trading.
How it Works:
Across each of the three selected timeframes, the panel evaluates:
Trend: Based on a user-configurable Hull Moving Average (HMA), the script compares price relative to trend to determine bullish, bearish, or neutral bias.
Momentum: Uses OBV (On-Balance Volume) with volume spike detection to identify bursts of strong buying or selling pressure.
Sweep: Detects potential liquidity grabs by identifying price rejections beyond prior swing highs/lows. A break below a previous low with reversal signals bullish intent (and vice versa for bearish).
Structure: Uses dynamic pivot-based logic to identify market structure breaks (BOS) beyond recent confirmed swing levels.
Trap: Flags potential false moves by measuring RSI overbought/oversold signal clusters combined with minimal price movement—highlighting exhaustion or deceptive breaks.
Score: A weighted consensus of the above components. The number of required confluences to trigger a score (default: 3) can be set by the user via input, offering flexibility in signal sensitivity.
Why It’s Useful for Traders:
Quick Decision-Making: The color-coded panel provides instant visual feedback on whether confluences align across timeframes—ideal for fast-paced environments like scalping or high-volatility news sessions.
Multi-Timeframe Confidence: Helps eliminate guesswork by confirming whether higher and lower timeframe conditions support your trade idea.
Customizability: Adjustable confluence threshold means traders can fine-tune how sensitive the system is—more signals for faster entries, stricter confluence for higher conviction trades.
Built-In Alerts: Automated alerts for score alignment, trap detection, and liquidity sweeps allow traders to stay informed even when away from the screen.
Strategic Edge: Supports directional bias confirmation and trade filtering with logic designed to mimic professional decision-making workflows.
Features:
Clean, real-time confluence table across three user-selected timeframes
Configurable score sensitivity via “Minimum Confluences for Score” input
Cell-based colour coding for at-a-glance trade direction
Built-in alerts for score alignment, traps, and sweep triggers
Note - This Indicator works great in sync with Apex Edge - Session Sweep Pro
Useful levels for TP = previous session high/low boxes or fib levels.
⚠️ Disclaimer:
This script is for informational and educational purposes only and should not be considered financial advice. Always perform your own due diligence and practice proper risk management when trading.
Suvorov Pro SFP+Indicator: Logic-based Swing Failure Pattern (SFP)
What is the logic of my indicator based on and what makes it unique:
1. The indicator can calculate extreme candles that close with huge shadows and a small body and it works on any timeframe.
2. The indicator analyzes the volumes on which the desired bar was closed. This function is customizable. That is, you can build a search for signals according to your trading strategy, based on the number of volumes. What does this mean - you select the number of previous bars where the indicator calculates the average value and based on these numbers, you can set up: how many times the desired candle should be larger than the previous average volume.
3. Since SFP is based on the removal of important liquidity, the search for such situations occurs from swing structures (swing high/low). When these parameters are found on the chart (on history), the indicator draws the situation and shows where important liquidity was removed and why the trading situation appeared right now.
4. The indicator gives recommendations on possible takes and stops.
The structure of takes has a built-in logic for searching for previous swings to remove liquidity, as well as searching for imbalances to cover them (50 and 100%).
5. For TP (Take Profit): there are 3 TPthat can be adjusted to your trading strategy (Risk/Profit). For example: you always trade from 2 to 1 on the 1st Take, 3 to 1 on the second, 5 to 1 on the third: you can set all this in the indicator and all your targets will be detected by the indicator, taking into account the logic of searching for important ranges. If, for example, in your 3 to 1 range there are no important zones for TP, then the indicator writes that NaN (not found).
6. The indicator works on any timeframe.
7. The indicator has a built-in RSI logic, which comes as an additional function to the indicator. If this function is enabled, then trading situations are detected only when there is a divergence (from the swing point to the extreme bar that has formed).
Smart Trend Lines [The_lurker]
Smart Trend Lines
A multi-level trend classifier that detects bullish and bearish conditions using a methodology based on drawing trend lines—main, intermediate, and short-term—by identifying peaks and troughs. The tool highlights trend strength by applying filters such as the Average Directional Index (ADX) (A), Relative Strength Index (RSI) (R), and Volume (V), making it easier to interpret trend strength. The filter markers (V, A, R) in the Smart Trend Lines indicator are powerful tools for assessing the reliability of breakouts. Breakouts containing are the most reliable, as they indicate strong volume support, trend strength, and favorable momentum. Breakouts with partial filters (such as or ) require additional confirmation, while breakouts without filters ( ) should be avoided unless supported by other strong signals. By understanding the meaning of each filter and the market context.
Core Functionality
1. Trend Line Types
The indicator generates three distinct trend line categories, each serving a specific analytical purpose:
Main Trend Lines: These are long-term trend lines designed to capture significant market trends. They are calculated based on pivot points over a user-defined period (default: 50 bars). Main trend lines are ideal for identifying macro-level support and resistance zones.
Mid Trend Lines: These are medium-term trend lines (default: 21 bars) that focus on intermediate price movements. They provide a balance between short-term fluctuations and long-term trends, suitable for swing trading strategies.
Short Trend Lines: These are short-term trend lines (default: 9 bars) that track rapid price changes. They are particularly useful for scalping or day trading, highlighting immediate support and resistance levels.
Each trend line type can be independently enabled or disabled, allowing traders to tailor the indicator to their preferred timeframes.
2. Breakout Detection
The indicator employs a robust breakout detection system that identifies when the price crosses a trend line, signaling a potential trend reversal or continuation. Breakouts are validated using the following filters:
ADX Filter: The Average Directional Index (ADX) measures trend strength. A user-defined threshold (default: 20) ensures that breakouts occur during strong trends, reducing false signals in range-bound markets.
RSI Filter: The Relative Strength Index (RSI) identifies overbought or oversold conditions. Breakouts are filtered based on RSI thresholds (default: 65 for overbought, 35 for oversold) to avoid signals in extreme market conditions.
Volume Filter: Breakouts are confirmed only when trading volume exceeds a moving average (default: 20 bars) and aligns with the breakout direction (e.g., higher volume on bullish breakouts when the candle closes higher).
Breakout events are marked with labels on the chart, indicating the type of trend line broken (Main, Mid, or Short) and the filters satisfied (Volume, ADX, RSI). Alerts are triggered for each breakout, providing real-time notifications.
3. Customization Options
The indicator offers extensive customization through input settings, organized into logical groups for ease of use:
Main Trend Line Settings
Length: Defines the number of bars used to calculate pivot points (default: 50).
Bullish Color: Color for upward-sloping (bullish) main trend lines (default: green).
Bearish Color: Color for downward-sloping (bearish) main trend lines (default: red).
Style: Line style options include solid, dashed, or dotted (default: solid).
Mid Trend Line Settings
Length: Number of bars for mid-term pivot points (default: 21).
Show/Hide: Toggle visibility of mid trend lines (default: enabled).
Bullish Color: Color for bullish mid trend lines (default: lime).
Bearish Color: Color for bearish mid trend lines (default: maroon).
Style: Line style (default: dashed).
Short Trend Line Settings
Length: Number of bars for short-term pivot points (default: 9).
Show/Hide: Toggle visibility of short trend lines (default: enabled).
Bullish Color: Color for bullish short trend lines (default: teal).
Bearish Color: Color for bearish short trend lines (default: purple).
Style: Line style (default: dotted).
General Display Settings
Break Check Price: Selects the price type for breakout detection (Close, High, or Low; default: Close).
Show Previous Trendlines: Option to display historical main trend lines (default: disabled).
Label Size: Size of breakout labels (Tiny, Small, Normal, Large, Huge; default: Small).
Filter Settings
ADX Threshold: Minimum ADX value for trend strength confirmation (default: 25).
Volume MA Period: Period for the volume moving average (default: 20).
RSI Filter: Enable/disable RSI filtering (default: enabled).
RSI Upper Threshold: Upper RSI limit for overbought conditions (default: 65).
RSI Lower Threshold: Lower RSI limit for oversold conditions (default: 35).
4. Technical Calculations
The indicator relies on several technical calculations to ensure accuracy:
Pivot Points: Pivot highs and lows are detected using the ta.pivothigh and ta.pivotlow functions, with separate lengths for Main, Mid, and Short trend lines.
Slope Calculation: The slope of each trend line is calculated as the change in price divided by the change in bar index between two pivot points.
ADX Calculation: ADX is computed using a 14-period Directional Movement Index (DMI), with smoothing over 14 bars.
RSI Calculation: RSI is calculated over a 14-period lookback using the ta.rsi function.
Volume Moving Average: A simple moving average (SMA) of volume is used to determine if current volume exceeds the average.
5. Strict Mode Validation
To ensure the reliability of trend lines, the indicator employs a strict mode check:
For bearish trend lines, all prices between pivot points must remain below the projected trend line.
For bullish trend lines, all prices must remain above the projected trend line.
Post-pivot break checks ensure that no breakouts occur between pivot points, enhancing the validity of the trend line.
6. Trend Line Extension
Trend lines are dynamically extended forward until a breakout occurs. The extension logic:
Projects the trend line using the calculated slope.
Continuously validates the extension using strict mode checks.
Stops extension upon a breakout, fixing the trend line at the breakout point.
7. Alerts and Labels
Labels: Breakout labels are placed above (for bearish breakouts) or below (for bullish breakouts) the price bar. Labels include:
A prefix indicating the trend line type (B for Main, M for Mid, S for Short).
A suffix showing satisfied filters (e.g., for Volume, ADX, and RSI).
Alerts: Each breakout triggers a one-time alert per bar close, with a descriptive message indicating the trend line type and filters met.
Detailed Code Breakdown
1. Initialization and Inputs
The script begins by defining the indicator with indicator('Smart Trend Lines ', overlay = true), ensuring it overlays on the price chart. Input settings are grouped into categories (Main, Mid, Short, General Display, Filters) for user convenience. Each input includes a tooltip in both English and Arabic, enhancing accessibility.
2. Technical Indicator Calculations
Volume MA: Calculated using ta.sma(volume, volPeriod) to compare current volume against the average.
ADX: Computed using custom dirmov and adx functions, which calculate the Directional Movement Index and smooth it over 14 periods.
RSI: Calculated with ta.rsi(close, rsiPeriod) over 14 periods.
Price Selection: The priceToCheck function selects the price type (Close, High, or Low) for breakout detection.
3. Pivot Detection
Pivot points are detected using ta.pivothigh and ta.pivotlow for each trend line type. The lookback period is set to the respective trend line length (e.g., 50 for Main, 21 for Mid, 9 for Short).
4. Trend Line Logic
For each trend line type (Main, Mid, Short):
Bearish Trend Lines: Identified when two consecutive pivot highs form a downward slope. The script validates the trend line using strict mode and post-pivot break checks.
Bullish Trend Lines: Identified when two consecutive pivot lows form an upward slope, with similar validation.
Trend lines are drawn using line.new, with separate lines for the initial segment (between pivots) and the extended segment (from the second pivot forward).
5. Breakout Detection and Labeling
Breakouts are detected when the selected price crosses the trend line level. The script checks:
Volume conditions (above average and aligned with candle direction).
ADX condition (above threshold).
RSI condition (within thresholds if enabled). Labels are created with label.new, and alerts are triggered with alert.
6. Trend Line Extension
The extendTrendline function dynamically updates the trend line’s endpoint unless a breakout occurs. It uses strict mode checks to ensure the trend line remains valid.
7. Previous Trend Lines
If enabled, previous main trend lines are stored in arrays (previousBearishStartLines, previousBullishTrendLines, etc.) and displayed on the chart, providing historical context.
Disclaimer:
The information and publications are not intended to be, nor do they constitute, financial, investment, trading, or other types of advice or recommendations provided or endorsed by TradingView.
Parsifal.Swing.TrendScoreThe Parsifal.Swing.TrendScore indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators such as:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module serves as an indicator facilitating judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These oscillations—or swings—within the trend are inherently tradable.
They can be approached:
• One-sidedly, aligning with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions as well.
Note: Mean reversions in strong trends often manifest as sideways consolidations, making one-sided trades more stable.
________________________________________
The Parsifal Swing Suite
The modules aim to provide additional insights into the swing state within a trend and offer various trigger points to assist with entry decisions.
All modules in the suite act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., RSI, which is constrained between 0% and 100%).
________________________________________
The Parsifal.Swing.TrendScore – Specifics
The Parsifal.Swing.TrendScore module combines short-term trend data with information about the current swing state, derived from raw price data and classical technical indicators. It provides an indication of how well the short-term trend aligns with the prevailing swing, based on recent market behavior.
________________________________________
How Swing.TrendScore Works
The Swing.TrendScore calculates a swing score by collecting data within a bin (i.e., a single candle or time bucket) that signals an upside or downside swing. These signals are then aggregated together with insights from classical swing indicators.
Additionally, it calculates a short-term trend score using core technical signals, including:
• The Z-score of the price's distance from various EMAs
• The slope of EMAs
• Other trend-strength signals from additional technical indicators
These two components—the swing score and the trend score—are then combined to form the Swing.TrendScore indicator, which evaluates the short-term trend in context with swing behavior.
________________________________________
How to Interpret Swing.TrendScore
The trend component enhances Swing.TrendScore’s ability to provide stronger signals when the short-term trend and swing state align.
It can also override the swing score; for example, even if a mean reversion appears to be forming, a dominant short-term trend may still control the market behavior.
This makes Swing.TrendScore particularly valuable for:
• Short-term trend-following strategies
• Medium-term swing trading
Unlike typical swing indicators, Swing.TrendScore is designed to respond more to medium-term swings rather than short-lived fluctuations.
________________________________________
Behavior and Chart Representation
The Swing.TrendScore indicator fluctuates within a range, as most of its components are range-bound (though Z-score components may technically extend beyond).
• Historically high or low values may suggest overbought or oversold conditions
• The chart displays:
o A fast curve (orange)
o A slow curve (white)
o A shaded background representing the market state
• Extreme values followed by curve reversals may signal a developing mean reversion
________________________________________
TrendScore Background Value
The Background Value reflects the combined state of the short-term trend and swing:
• > 0 (shaded green) → Bullish mode: swing and short-term trend both upward
• < 0 (shaded red) → Bearish mode: swing and short-term trend both downward
• The absolute value represents the confidence level in the market mode
Notably, the Background Value can remain positive during short downswings if the short-term trend remains bullish—and vice versa.
________________________________________
How to Use the Parsifal.Swing.TrendScore
Several change points can act as entry triggers or aids:
• Fast Trigger: change in slope of the fast signal curve
• Trigger: fast line crosses slow line or the slope of the slow signal changes
• Slow Trigger: change in sign of the Background Value
Examples of these trigger points are illustrated in the accompanying chart.
Additionally, market highs and lows aligning with the swing indicator values may serve as pivot points in the evolving price process.
________________________________________
As always, this indicator should be used in conjunction with other tools and market context in live trading.
While it provides valuable insight and potential entry points, it does not predict future price action.
Instead, it reflects recent tendencies and should be used judiciously.
________________________________________
Extensions
The aggregation of information—whether derived from bins or technical indicators—is currently performed via simple averaging. However, this can be modified using alternative weighting schemes, based on:
• Historical performance
• Relevance of the data
• Specific market conditions
Smoothing periods used in calculations are also modifiable. In general, the EMAs applied for smoothing can be extended to reflect expectations based on relevance-weighted probability measures.
Since EMAs inherently give more weight to recent data, this allows for adaptive smoothing.
Additionally, EMAs may be further extended to incorporate negative weights, akin to wavelet transform techniques.
SMA PLOTS & ANCHORED VWAP & CONSOLIDATION FINDERHi traders,
SMA Plots, Anchored VWAP & Consolidation Finder
This Pine Script indicator combines multiple technical analysis tools to provide traders with a comprehensive view of price trends, volume-weighted price levels, and consolidation periods. It includes Simple Moving Averages (SMAs) for daily and chart timeframes, an Anchored Volume-Weighted Average Price (VWAP) with standard deviation bands, and a consolidation detection system based on Bollinger Bands (BB), Average True Range (ATR), and Relative Strength Index (RSI). Designed for versatility, it caters to both trend-following and range-bound trading strategies.
Indicators and Logic
Simple Moving Averages (SMAs):
Daily SMAs: 50-period and 200-period SMAs are calculated on the daily timeframe, plotted on the chart for trend identification. These are ideal for long-term trend analysis, with the 50-SMA acting as a short-term trend indicator and the 200-SMA as a long-term trend indicator.
Chart SMAs: 50-period and 200-period SMAs are calculated on the current chart timeframe, offering flexibility for intraday or swing trading. These are toggleable and disabled by default to reduce chart clutter.
Labeling: Customizable labels for SMA lines and their values (toggleable) provide clear visual cues, showing the exact price levels of the SMAs on the chart.
Anchored VWAP with Standard Deviation Bands:
The VWAP is anchored to a user-defined date (default: March 20, 2020), calculating the volume-weighted average price from that point. It serves as a dynamic support/resistance level, reflecting the average price traders have paid.
Three standard deviation bands (1σ, 2σ, 3σ) are plotted around the VWAP, helping identify overbought/oversold conditions or potential breakout zones. These bands are toggleable for user convenience.
A 1-period EMA is included (toggleable, disabled by default) for traders who prefer a fast-moving average for short-term price tracking.
Consolidation Detection:
The consolidation finder uses three indicators to identify low-volatility periods, which often precede breakouts:
Bollinger Bands (BB): Measures price range tightness using the BB width (upper band - lower band / SMA). A low BB width (< user-defined threshold) indicates consolidation.
ATR (Average True Range): Assesses volatility as a percentage of the closing price. A low ATR % (< user-defined threshold) confirms reduced market activity.
RSI (Relative Strength Index): A low RSI (< user-defined threshold) suggests weak momentum, typical of consolidation phases.
Two consolidation signals are generated:
New Signal: Detects consolidation if at least a user-defined number of bars (default: 3) within a lookback period (default: 10) meet the criteria.
Standard Signal: Detects instant consolidation based on the current bar’s conditions.
A dynamic table displays historical data (min/max/average) for BB width, ATR %, and RSI within a user-defined date range, aiding in parameter optimization.
Trading Strategies
Trend-Following with SMAs:
Use the 50/200 SMA crossover on the daily timeframe to identify bullish (50 > 200) or bearish (50 < 200) trends.
On the chart timeframe, enable the 50/200 SMAs for shorter-term trend confirmation, aligning trades with the dominant trend.
Example: Enter long positions when the price is above both SMAs and short positions when below, using SMA value labels to confirm price proximity.
Mean-Reversion with Anchored VWAP:
Treat the VWAP as a mean price level. Enter long trades when the price dips to the lower 1σ/2σ bands and short trades when it rises to the upper 1σ/2σ bands, expecting a reversion to the VWAP.
Use the 3σ bands to identify extreme conditions for potential breakout or reversal trades.
Example: If the price touches the lower 2σ band and the RSI is oversold, consider a long trade targeting the VWAP.
Breakout Trading with Consolidation Detection:
Monitor the consolidation signals (new or standard) to identify low-volatility periods. These often precede significant price movements.
Enter breakout trades when the price breaks above/below key levels (e.g., VWAP, SMA, or BB bands) after a consolidation signal.
Example: If the “New Signal” is active and the price breaks above the VWAP with increasing volume, initiate a long trade targeting the upper BB band.
User-Friendly Features
Customizable Inputs: Users can adjust SMA lengths, VWAP anchor date, band multipliers, and consolidation thresholds to suit their trading style.
Toggleable Plots and Labels: Enable/disable SMAs, VWAP bands, EMA, and labels to declutter the chart and focus on relevant data.
Dynamic Table: Displays historical BB width, ATR %, and RSI metrics for the selected date range, helping users fine-tune parameters.
Alert Conditions: Two alert conditions (new and standard consolidation signals) allow users to set notifications for trading opportunities.
Visual Clarity: Color-coded plots (green for bullish, red for bearish) and clear labels enhance readability and decision-making.
How to Use
Add the indicator to your chart and adjust input parameters (e.g., SMA lengths, VWAP anchor date, consolidation thresholds) based on your trading preferences.
Enable/disable plots and labels to customize the chart display.
Monitor the dynamic table for historical data to optimize consolidation detection settings.
Set alerts for consolidation signals to stay informed of potential trading opportunities.
Combine SMA trends, VWAP levels, and consolidation signals to develop a robust trading strategy.
Notes
This indicator is best used in conjunction with other technical/fundamental analysis to confirm signals.
Backtest any strategy thoroughly before live trading, as past performance does not guarantee future results.
The default settings are optimized for general use but may require adjustment for specific markets or timeframes.
Disclaimer
This script is provided for educational purposes and should not be considered financial advice. Always conduct your own research and consult a financial advisor before trading.
ADX Forecast [Titans_Invest]ADX Forecast
This isn’t just another ADX indicator — it’s the most powerful and complete ADX tool ever created, and without question the best ADX indicator on TradingView, possibly even the best in the world.
ADX Forecast represents a revolutionary leap in trend strength analysis, blending the timeless principles of the classic ADX with cutting-edge predictive modeling. For the first time on TradingView, you can anticipate future ADX movements using scientifically validated linear regression — a true game-changer for traders looking to stay ahead of trend shifts.
1. Real-Time ADX Forecasting
By applying least squares linear regression, ADX Forecast projects the future trajectory of the ADX with exceptional accuracy. This forecasting power enables traders to anticipate changes in trend strength before they fully unfold — a vital edge in fast-moving markets.
2. Unmatched Customization & Precision
With 26 long entry conditions and 26 short entry conditions, this indicator accounts for every possible ADX scenario. Every parameter is fully customizable, making it adaptable to any trading strategy — from scalping to swing trading to long-term investing.
3. Transparency & Advanced Visualization
Visualize internal ADX dynamics in real time with interactive tags, smart flags, and fully adjustable threshold levels. Every signal is transparent, logic-based, and engineered to fit seamlessly into professional-grade trading systems.
4. Scientific Foundation, Elite Execution
Grounded in statistical precision and machine learning principles, ADX Forecast upgrades the classic ADX from a reactive lagging tool into a forward-looking trend prediction engine. This isn’t just an indicator — it’s a scientific evolution in trend analysis.
⯁ SCIENTIFIC BASIS LINEAR REGRESSION
Linear Regression is a fundamental method of statistics and machine learning, used to model the relationship between a dependent variable y and one or more independent variables 𝑥.
The general formula for a simple linear regression is given by:
y = β₀ + β₁x + ε
β₁ = Σ((xᵢ - x̄)(yᵢ - ȳ)) / Σ((xᵢ - x̄)²)
β₀ = ȳ - β₁x̄
Where:
y = is the predicted variable (e.g. future value of RSI)
x = is the explanatory variable (e.g. time or bar index)
β0 = is the intercept (value of 𝑦 when 𝑥 = 0)
𝛽1 = is the slope of the line (rate of change)
ε = is the random error term
The goal is to estimate the coefficients 𝛽0 and 𝛽1 so as to minimize the sum of the squared errors — the so-called Random Error Method Least Squares.
⯁ LEAST SQUARES ESTIMATION
To minimize the error between predicted and observed values, we use the following formulas:
β₁ = /
β₀ = ȳ - β₁x̄
Where:
∑ = sum
x̄ = mean of x
ȳ = mean of y
x_i, y_i = individual values of the variables.
Where:
x_i and y_i are the means of the independent and dependent variables, respectively.
i ranges from 1 to n, the number of observations.
These equations guarantee the best linear unbiased estimator, according to the Gauss-Markov theorem, assuming homoscedasticity and linearity.
⯁ LINEAR REGRESSION IN MACHINE LEARNING
Linear regression is one of the cornerstones of supervised learning. Its simplicity and ability to generate accurate quantitative predictions make it essential in AI systems, predictive algorithms, time series analysis, and automated trading strategies.
By applying this model to the ADX, you are literally putting artificial intelligence at the heart of a classic indicator, bringing a new dimension to technical analysis.
⯁ VISUAL INTERPRETATION
Imagine an ADX time series like this:
Time →
ADX →
The regression line will smooth these values and extend them n periods into the future, creating a predicted trajectory based on the historical moment. This line becomes the predicted ADX, which can be crossed with the actual ADX to generate more intelligent signals.
⯁ SUMMARY OF SCIENTIFIC CONCEPTS USED
Linear Regression Models the relationship between variables using a straight line.
Least Squares Minimizes the sum of squared errors between prediction and reality.
Time Series Forecasting Estimates future values based on historical data.
Supervised Learning Trains models to predict outputs from known inputs.
Statistical Smoothing Reduces noise and reveals underlying trends.
⯁ WHY THIS INDICATOR IS REVOLUTIONARY
Scientifically-based: Based on statistical theory and mathematical inference.
Unprecedented: First public ADX with least squares predictive modeling.
Intelligent: Built with machine learning logic.
Practical: Generates forward-thinking signals.
Customizable: Flexible for any trading strategy.
⯁ CONCLUSION
By combining ADX with linear regression, this indicator allows a trader to predict market momentum, not just follow it.
ADX Forecast is not just an indicator — it is a scientific breakthrough in technical analysis technology.
⯁ Example of simple linear regression, which has one independent variable:
⯁ In linear regression, observations ( red ) are considered to be the result of random deviations ( green ) from an underlying relationship ( blue ) between a dependent variable ( y ) and an independent variable ( x ).
⯁ Visualizing heteroscedasticity in a scatterplot against 100 random fitted values using Matlab:
⯁ The data sets in the Anscombe's quartet are designed to have approximately the same linear regression line (as well as nearly identical means, standard deviations, and correlations) but are graphically very different. This illustrates the pitfalls of relying solely on a fitted model to understand the relationship between variables.
⯁ The result of fitting a set of data points with a quadratic function:
_______________________________________________________________________
🥇 This is the world’s first ADX indicator with: Linear Regression for Forecasting 🥇_______________________________________________________________________
_________________________________________________
🔮 Linear Regression: PineScript Technical Parameters 🔮
_________________________________________________
Forecast Types:
• Flat: Assumes prices will remain the same.
• Linreg: Makes a 'Linear Regression' forecast for n periods.
Technical Information:
ta.linreg (built-in function)
Linear regression curve. A line that best fits the specified prices over a user-defined time period. It is calculated using the least squares method. The result of this function is calculated using the formula: linreg = intercept + slope * (length - 1 - offset), where intercept and slope are the values calculated using the least squares method on the source series.
Syntax:
• Function: ta.linreg()
Parameters:
• source: Source price series.
• length: Number of bars (period).
• offset: Offset.
• return: Linear regression curve.
This function has been cleverly applied to the RSI, making it capable of projecting future values based on past statistical trends.
______________________________________________________
______________________________________________________
⯁ WHAT IS THE ADX❓
The Average Directional Index (ADX) is a technical analysis indicator developed by J. Welles Wilder. It measures the strength of a trend in a market, regardless of whether the trend is up or down.
The ADX is an integral part of the Directional Movement System, which also includes the Plus Directional Indicator (+DI) and the Minus Directional Indicator (-DI). By combining these components, the ADX provides a comprehensive view of market trend strength.
⯁ HOW TO USE THE ADX❓
The ADX is calculated based on the moving average of the price range expansion over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and has three main zones:
• Strong Trend: When the ADX is above 25, indicating a strong trend.
• Weak Trend: When the ADX is below 20, indicating a weak or non-existent trend.
• Neutral Zone: Between 20 and 25, where the trend strength is unclear.
______________________________________________________
______________________________________________________
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔹 +DI > -DI
🔹 +DI < -DI
🔹 +DI > ADX
🔹 +DI < ADX
🔹 -DI > ADX
🔹 -DI < ADX
🔹 ADX > Threshold
🔹 ADX < Threshold
🔹 +DI > Threshold
🔹 +DI < Threshold
🔹 -DI > Threshold
🔹 -DI < Threshold
🔹 +DI (Crossover) -DI
🔹 +DI (Crossunder) -DI
🔹 +DI (Crossover) ADX
🔹 +DI (Crossunder) ADX
🔹 +DI (Crossover) Threshold
🔹 +DI (Crossunder) Threshold
🔹 -DI (Crossover) ADX
🔹 -DI (Crossunder) ADX
🔹 -DI (Crossover) Threshold
🔹 -DI (Crossunder) Threshold
🔮 +DI (Crossover) -DI Forecast
🔮 +DI (Crossunder) -DI Forecast
🔮 ADX (Crossover) +DI Forecast
🔮 ADX (Crossunder) +DI Forecast
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔸 +DI > -DI
🔸 +DI < -DI
🔸 +DI > ADX
🔸 +DI < ADX
🔸 -DI > ADX
🔸 -DI < ADX
🔸 ADX > Threshold
🔸 ADX < Threshold
🔸 +DI > Threshold
🔸 +DI < Threshold
🔸 -DI > Threshold
🔸 -DI < Threshold
🔸 +DI (Crossover) -DI
🔸 +DI (Crossunder) -DI
🔸 +DI (Crossover) ADX
🔸 +DI (Crossunder) ADX
🔸 +DI (Crossover) Threshold
🔸 +DI (Crossunder) Threshold
🔸 -DI (Crossover) ADX
🔸 -DI (Crossunder) ADX
🔸 -DI (Crossover) Threshold
🔸 -DI (Crossunder) Threshold
🔮 +DI (Crossover) -DI Forecast
🔮 +DI (Crossunder) -DI Forecast
🔮 ADX (Crossover) +DI Forecast
🔮 ADX (Crossunder) +DI Forecast
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Linear Regression: (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Linear Regression (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Table of Conditions: BUY/SELL
Conditions Label: BUY/SELL
Plot Labels in the graph above: BUY/SELL
Automate & Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : ADX Forecast
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
Guppy Multiple Moving Average (GMMA)The GMMA Momentum Indicator plots 12 EMAs on your chart, divided into two groups:
Short-term EMAs (6 lines, default periods: 3, 5, 8, 10, 12, 15): Represent short-term trader sentiment and momentum.
Long-term EMAs (6 lines, default periods: 30, 35, 40, 45, 50, 60): Reflect long-term investor behavior and broader market trends.
By analyzing the interaction between these two groups, the indicator identifies:
Bullish and bearish trends based on the relative positions of the short- and long-term EMAs.
Momentum strength through the spread or convergence of the EMAs.
Potential reversals or breakouts via compression signals.
This PineScript version enhances the traditional GMMA by adding visual cues like background colors, bearish signals, and compression detection, making it ideal for swing traders seeking clear, actionable insights.
The GMMA Momentum Indicator provides several key features:
1. Trend Identification
Bullish Trend: When the short-term EMAs (green lines) are above the long-term EMAs (blue lines) and spreading apart, it signals strong upward momentum. The chart background turns light green to highlight this condition.
Bearish Trend: When the short-term EMAs cross below the long-term EMAs and converge, it indicates downward momentum. The background turns light red, and an orange downward triangle appears above the bar to mark a new bearish signal.
2. Momentum Analysis
The spread between the short-term EMAs reflects the strength of short-term momentum. A wide spread suggests strong momentum, while a tight grouping indicates weakening momentum or consolidation. Similarly, the long-term EMAs act as dynamic support or resistance, guiding traders on the broader trend.
3. Compression Detection
Compression occurs when both the short-term and long-term EMAs converge, signaling low volatility and a potential breakout or reversal. A yellow upward triangle appears below the bar when compression is detected, alerting traders to watch for price action.
4. Visual Cues
Green short-term EMAs: Show short-term trader activity.
Blue long-term EMAs: Represent long-term investor sentiment.
Background colors: Light green for bullish trends, light red for bearish trends, and transparent for neutral conditions.
Orange downward triangles: Mark new bearish trends.
Yellow upward triangles: Indicate compression, hinting at potential breakouts.
How to Use the GMMA Momentum Indicator for Swing Trading
Swing trading involves capturing price moves over days to weeks, and the GMMA Momentum Indicator is an excellent tool for this strategy. Here’s how to use it effectively:
1. Identifying Trade Entries
Buy Opportunities:
Look for a bullish trend (green background) where the short-term EMAs are above the long-term EMAs and spreading apart, indicating strong momentum.
A compression signal (yellow triangle) followed by a breakout above resistance or a bullish candlestick pattern can confirm an entry.
Example: On a daily chart, if the short-term EMAs cross above the long-term EMAs and the background turns green, consider entering a long position, especially if volume supports the move.
Sell Opportunities:
Watch for a bearish signal (orange downward triangle) or a bearish trend (red background) where the short-term EMAs cross below the long-term EMAs.
Example: If the short-term EMAs collapse below the long-term EMAs and an orange triangle appears, it may signal a shorting opportunity or a time to exit longs.
2. Managing Trades
Use the long-term EMAs as dynamic support (in uptrends) or resistance (in downtrends) to set stop-loss levels or trail stops.
Monitor the spread of the short-term EMAs. A widening spread suggests the trend is strong, while convergence may indicate it’s time to take profits or tighten stops.
3. Anticipating Reversals
Compression signals (yellow triangles) highlight periods of low volatility, often preceding significant price moves. Combine these with price action (e.g., breakouts or reversals) or other indicators (e.g., RSI or volume) for confirmation.
Example: If a compression signal appears near a key support level and the price breaks upward, it could signal the start of a new bullish swing.
4. Best Practices
Timeframes: The indicator works well on daily or 4-hour charts for swing trading, but you can adjust the EMA periods for shorter (e.g., 1-hour) or longer (e.g., weekly) timeframes.
Confirmation: Combine the GMMA with other tools like support/resistance levels, candlestick patterns, or oscillators (e.g., MACD) to reduce false signals.
Risk Management: Always use proper position sizing and stop-losses, as EMAs are lagging indicators and may produce delayed signals in choppy markets.
EMA Cross w/ RSI & Volume Spike (Full Setup)📈 EMA Cross w/ RSI & Volume Spike (Full Setup)
This custom indicator is designed for traders seeking precise buy/sell signals based on a powerful combination of Exponential Moving Averages (EMAs), RSI, and Volume Spikes. It is optimized for both spot and futures trading, especially effective on lower timeframes (like 5m–15m) and swing trading charts.
🔧 Key Features
✅ EMA Stack – Includes 6 EMAs:
Short-Term: EMA 9, 21
Mid-Term: EMA 26, 50
Long-Term: EMA 100, 200
✅ Cross Alerts –
BUY signals: When faster EMAs cross above slower EMAs
SELL signals: When faster EMAs cross below slower EMAs
Covers short-, mid-, and long-term crossovers
✅ Confluence Signals –
BUY+ / SELL+ signals trigger only when an EMA cross is confirmed by:
• RSI (Relative Strength Index) confirmation
• Volume spike above 1.5× 20-period volume average
✅ Visual Markers on Chart –
📗 BUY – Basic EMA cross up
📘 BUY+ – EMA cross + RSI > 50 + volume spike
📕 SELL – Basic EMA cross down
🟧 SELL+ – EMA cross + RSI < 50 + volume spike
✅ Built-in Alerts –
All signal types (BUY, SELL, BUY+, SELL+) can be used with TradingView alerts.
🧠 Best Use Case
This indicator is perfect for:
Scalping (5m / 15m charts)
Spot trading pullbacks
Futures momentum breakouts
Identifying early trend shifts or confirmations
Leonid's Bitcoin Macro & Liquidity Regime Tracker🧠 Macro Overlay Score (Bitcoin Liquidity Regime Tracker)
This indicator combines the most important macroeconomic and on-chain inputs into a single unified score to help investors identify Bitcoin’s long-term cycle phases. Each input is normalized into a 0–100 score and blended using configurable weights to generate a dynamic, forward-looking macro regime tracker.
✅ Best used on the **Bitcoin All Time History Index with Weekly resolution** (`INDEX:BTCUSD`) for maximum historical context and signal clarity.
---
📈 Why Macro?
Macro liquidity conditions — interest rates, monetary expansion, dollar strength, credit risk — drive Bitcoin cycles . Risk assets like BTC thrive during periods of:
Monetary easing
Liquidity injections
Expansionary central bank policy
This overlay surfaces those periods *before* price follows. It captures cycle shifts in the business cycle, monetary policy, and investor sentiment — making it ideal for long-term allocators, macro-aligned investors, and cycle-focused BTC holders.
🔔 This is **not** designed for short-term or swing trading. It is optimized for **macro trend confirmation and regime awareness** — not fast entry/exit signals.
---
🔍 What It Tracks
Macro Inputs:
- 🏭 ISM 3M Trend (Business Cycle)
- 💹 CPI YoY (Inverted Inflation)
- 💵 M2 YoY + M2 Acceleration
- 🇨🇳 China M2 (Global Liquidity)
- 💱 DXY 3M Trend (USD Strength)
- 🏦 TGA & RRP YoY (Treasury / MMF Flows)
- 🏛 Fed Balance Sheet (WALCL)
- 💳 High Yield Spread (Credit Conditions)
- 💧 Net Liquidity Composite = WALCL – TGA – RRP
On-Chain Inputs:
- ⚠️ MVRV Ratio (Valuation Cycles)
- 🚀 Mayer Multiple Acceleration (200DMA Momentum)
---
🧩 How It Works
Each input is:
Normalized to a 0–100 score
Weighted by importance (fully configurable)
Combined into a **composite Macro Score**, then normalized across history
The chart will display:
🔷 A 0–100 **Macro Score Line**
🧭 **Cycle Phase classification**: Accumulation, Expansion, Distribution, Capitulation
📊 Optional **debug table** with all sub-scores
---
🧠 Interpreting the Signal
| Signal Type | Meaning |
|-------------------|---------------------------------------------|
| Macro Score ↑ | Liquidity improving → Bullish regime forming |
| Macro Score ↓ | Liquidity deteriorating → Caution warranted |
| Score < 40 & Rising | 🔵 Accumulation cycle likely beginning |
| Score > 70 & Falling | 🟡 Distribution / Macro exhaustion |
| Net Liquidity ↑ | Strong driver of BTC upside historically |
---
❓ FAQ
Q: Why did the Macro Score peak in March 2021, but Bitcoin topped in November?
> The indicator reflects **macro liquidity**, not price momentum. M2 growth slowed, DXY bottomed, and the Fed stopped expanding WALCL by Q1 2021 — all signs of macro exhaustion. BTC continued on **residual momentum**, but the smart money began exiting months earlier.
Q: What does the score range mean?
- 0–25 : Tight liquidity, unfavorable conditions
- 50 : Neutral environment
- 75–100 : Strong easing, liquidity surge
Q: Is this good for short-term signals?
> No. This is a **macro-level overlay**, best used for 3–12 month context shifts, not day trades.
Q: Can I adjust the weights?
> Yes. You can tune the influence of each input to match your thesis (e.g., overweight on-chain, or global liquidity).
Q: Do I need special data access?
> No. All symbols are public TradingView datasets (FRED, CryptoCap, etc.). Just use this on a BTC chart like `BTCUSD`.
---
✅ How to Use
- Load on **`INDEX:BTCUSD`**, set to **Weekly timeframe**
- Confirm long-term bottoms when score is low and rising (Accumulation → Expansion)
- Watch for tops when score is high and falling (Distribution → Capitulation)
- Combine with price structure, realized profit/loss, and market sentiment
---
🚀 If you're serious about understanding Bitcoin's macro regime, this is your alpha map. Share it, clone it, and build on it.
Multi-MA Trend & ATR Band CloudsMulti-MA Trend & ATR Band Clouds
Overview:
Originally designed for scalpers, this indicator provides a detailed and adaptable view of market structure, making it equally effective across all timeframes — from 1-minute charts to daily analysis. It integrates flexible moving average configurations with ATR-based cloud bands for real-time trend and volatility assessment.
Key Features:
Up to 10 customizable moving averages – Select from SMA, EMA, WMA, SMMA, GMA, or hybrid combinations. Each moving average can be individually styled and displayed.
Global trend condition system – Trend direction is determined by a user-defined crossover between two MAs, applied uniformly across all major timeframes (M1 to D1).
Multi-layer ATR-based volatility bands – Three levels of ATR bands are drawn around a base MA, offering insight into dynamic support/resistance and volatility zones.
Fully configurable visual output – Customize opacity, cloud display, curve visibility, and color schemes to fit your charting needs.
Use Cases:
Scalping: Fast trend shift detection and volatility mapping
Intraday trading: Multi-timeframe confirmation and structure tracking
Swing trading: Broader trend and support/resistance zone visualization
Signal development: Create visual or algorithmic confluence systems
Recommended For:
Scalpers, intraday traders, and analysts seeking a structured, real-time view of market dynamics, with flexible parameters and broad applicability.